json-as 0.5.60 → 0.5.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "0.5.60",
3
+ "version": "0.5.61",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -143,8 +143,10 @@ class AsJSONTransform extends BaseVisitor {
143
143
  }
144
144
  `;
145
145
  }
146
+ // Odd behavior here... When pairing this transform with asyncify, having @inline on __JSON_Set_Key<T> with a generic will cause it to freeze.
147
+ // Binaryen cannot predict and add/mangle code when it is genericed.
146
148
  const setKeyFunc = `
147
- @inline __JSON_Set_Key<T>(key: T, data: string, val_start: i32, val_end: i32): void {
149
+ __JSON_Set_Key<T>(key: T, data: string, val_start: i32, val_end: i32): void {
148
150
  ${
149
151
  // @ts-ignore
150
152
  this.currentClass.setDataStmts.join("")}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-as/transform",
3
- "version": "0.5.60",
3
+ "version": "0.5.61",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",