Use int to string conversion from newest AssemblyScript

This commit is contained in:
Vladimir Grichina 2019-01-11 13:29:16 -08:00
parent 9b13c7c5ee
commit e856830f77
2 changed files with 2 additions and 4 deletions

View File

@ -112,9 +112,7 @@ export class JSONEncoder {
} }
private writeInteger(value: i32): void { private writeInteger(value: i32): void {
// TODO: More efficient encoding this.write(value.toString());
let arr: Array<i32> = [value];
this.write(arr.toString());
} }
private write(str: string): void { private write(str: string): void {

2
package-lock.json generated
View File

@ -594,7 +594,7 @@
"dev": true, "dev": true,
"requires": { "requires": {
"@protobufjs/utf8": "^1.1.0", "@protobufjs/utf8": "^1.1.0",
"binaryen": "55.0.0-nightly.20181130", "binaryen": "63.0.0-nightly.20190107",
"glob": "^7.1.3", "glob": "^7.1.3",
"long": "^4.0.0" "long": "^4.0.0"
} }