summaryrefslogtreecommitdiff
path: root/scripts/test/wasm2js.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test/wasm2js.py')
-rwxr-xr-xscripts/test/wasm2js.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py
index afa399da2..2892da278 100755
--- a/scripts/test/wasm2js.py
+++ b/scripts/test/wasm2js.py
@@ -52,6 +52,8 @@ def test_wasm2js_output():
print '..', wasm
cmd = WASM2JS + [os.path.join(options.binaryen_test, wasm)]
+ if 'emscripten' in wasm:
+ cmd += ['--emscripten']
out = run_command(cmd)
fail_if_not_identical_to_file(out, expected_file)
@@ -129,6 +131,8 @@ def update_wasm2js_tests():
print '..', wasm
cmd = WASM2JS + [os.path.join('test', wasm)]
+ if 'emscripten' in wasm:
+ cmd += ['--emscripten']
out = run_command(cmd)
with open(expected_file, 'w') as o:
o.write(out)