porffor 0.37.29 → 0.37.30
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/compiler/builtins/error.js +1 -1
- package/compiler/builtins_precompiled.js +43 -43
- package/compiler/codegen.js +3 -2
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/codegen.js
CHANGED
@@ -1735,7 +1735,7 @@ const createThisArg = (scope, decl) => {
|
|
1735
1735
|
if (decl._new) {
|
1736
1736
|
// if precompiling or builtin func, just make empty object
|
1737
1737
|
if (globalThis.precompile || Object.hasOwn(builtinFuncs, name)) return [
|
1738
|
-
...
|
1738
|
+
...number(NULL),
|
1739
1739
|
...number(TYPES.object, Valtype.i32)
|
1740
1740
|
];
|
1741
1741
|
|
@@ -1793,7 +1793,8 @@ const createThisArg = (scope, decl) => {
|
|
1793
1793
|
];
|
1794
1794
|
}
|
1795
1795
|
|
1796
|
-
// do not generate globalThis
|
1796
|
+
// do not generate globalThis now,
|
1797
|
+
// do it dynamically in generateThis in the func later
|
1797
1798
|
return [
|
1798
1799
|
...number(NULL),
|
1799
1800
|
...number(TYPES.object, Valtype.i32)
|
package/package.json
CHANGED