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.
@@ -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
- ...makeObject(scope, {}),
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 for builtins
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.37.29+5337f0091",
4
+ "version": "0.37.30+d663c99a2",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.37.29+5337f0091';
3
+ globalThis.version = '0.37.30+d663c99a2';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {