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 {
// TODO: More efficient encoding
let arr: Array<i32> = [value];
this.write(arr.toString());
this.write(value.toString());
}
private write(str: string): void {