json-as 0.5.59 → 0.5.60
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 +1 -1
- package/transform/package.json +1 -1
- package/transform/src/index.ts +3 -1
package/package.json
CHANGED
package/transform/package.json
CHANGED
package/transform/src/index.ts
CHANGED
|
@@ -174,8 +174,10 @@ class AsJSONTransform extends BaseVisitor {
|
|
|
174
174
|
`;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
// Odd behavior here... When pairing this transform with asyncify, having @inline on __JSON_Set_Key<T> with a generic will cause it to freeze.
|
|
178
|
+
// Binaryen cannot predict and add/mangle code when it is genericed.
|
|
177
179
|
const setKeyFunc = `
|
|
178
|
-
|
|
180
|
+
__JSON_Set_Key<T>(key: T, data: string, val_start: i32, val_end: i32): void {
|
|
179
181
|
${
|
|
180
182
|
// @ts-ignore
|
|
181
183
|
this.currentClass.setDataStmts.join("")
|