mirror of
https://github.com/fluencelabs/assemblyscript-json
synced 2025-07-02 16:01:41 +00:00
Use int to string conversion from newest AssemblyScript
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user