mirror of
https://github.com/fluencelabs/assemblyscript-json
synced 2025-04-24 22:32:20 +00:00
Use int to string conversion from newest AssemblyScript
This commit is contained in:
parent
9b13c7c5ee
commit
e856830f77
@ -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 {
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -594,7 +594,7 @@
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@protobufjs/utf8": "^1.1.0",
|
||||
"binaryen": "55.0.0-nightly.20181130",
|
||||
"binaryen": "63.0.0-nightly.20190107",
|
||||
"glob": "^7.1.3",
|
||||
"long": "^4.0.0"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user