porffor 0.37.1 → 0.37.2

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.
@@ -2253,8 +2253,8 @@ const generateCall = (scope, decl, _global, _name, unusedValue = false) => {
2253
2253
  let getCalleeObj = undefined;
2254
2254
  let initCalleeObj = undefined;
2255
2255
 
2256
- // hack: this should be more thorough, Function.bind, etc.
2257
- if (decl.callee.type == 'MemberExpression') {
2256
+ // hack: this should be more thorough, Function.bind, etc
2257
+ if (decl.callee.type == 'MemberExpression' && !decl._new) {
2258
2258
  const callee = localTmp(scope, '#indirect_callee_obj', Valtype.f64);
2259
2259
  initCalleeObj = [
2260
2260
  ...generate(scope, decl.callee.object),
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.1+9d9c67653",
4
+ "version": "0.37.2+c66ebc0c6",
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.1+9d9c67653';
3
+ globalThis.version = '0.37.2+c66ebc0c6';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {