porffor 0.37.1 → 0.37.3
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/compiler/index.js +1 -1
- 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/compiler/index.js
CHANGED
@@ -196,7 +196,7 @@ export default (code, flags) => {
|
|
196
196
|
}
|
197
197
|
|
198
198
|
if (target === 'native') {
|
199
|
-
outFile ??= Prefs.native ? './porffor_tmp' : file.split('/').at(-1).split('.')
|
199
|
+
outFile ??= Prefs.native ? './porffor_tmp' : file.split('/').at(-1).split('.')[0];
|
200
200
|
|
201
201
|
let compiler = Prefs.compiler ?? 'clang';
|
202
202
|
const cO = Prefs._cO ?? 'Ofast';
|
package/package.json
CHANGED