aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemscripten.py2
-rwxr-xr-xtests/runner.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 8ffdf458..248d0ce4 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -456,7 +456,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None,
asm_setup += '''
function invoke_%s(%s) {
try {
- %sModule.dynCall_%s(%s);
+ %sModule["dynCall_%s"](%s);
} catch(e) {
if (typeof e !== 'number' && e !== 'longjmp') throw e;
asm["setThrew"](1, 0);
diff --git a/tests/runner.py b/tests/runner.py
index 1bca1d54..c64b4fa7 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -12664,6 +12664,7 @@ elif 'benchmark' in str(sys.argv):
'-O2', '-s', 'DOUBLE_MODE=0', '-s', 'PRECISE_I64_MATH=0',
'--llvm-lto', '1', '--memory-init-file', '0',
'-s', 'TOTAL_MEMORY=128*1024*1024',
+ '--closure', '1',
'-o', final_filename] + shared_args + emcc_args, stdout=PIPE, stderr=self.stderr_redirect).communicate()
assert os.path.exists(final_filename), 'Failed to compile file: ' + output[0]