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.
- package/compiler/codegen.js +2 -2
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/codegen.js
CHANGED
@@ -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