From f81c78bd62548a1eabc27adfbcbdc44cefb320cf Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 24 Apr 2019 10:22:56 -0700 Subject: wasm2js: start to optionally optimize the JS (#2046) Removes redundant | 0s and similar things. (Apparently closure compiler doesn't do that, so makes sense to do here.) --- scripts/test/wasm2js.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 5b83e1b21..396c26481 100755 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -59,7 +59,7 @@ def test_wasm2js_output(): with open('split.wast', 'w') as o: o.write(module + '\n'.join(asserts)) - cmd = WASM2JS + ['split.wast'] + cmd = WASM2JS + ['split.wast', '-O'] if 'emscripten' in wasm: cmd += ['--emscripten'] out = run_command(cmd) @@ -150,7 +150,7 @@ def update_wasm2js_tests(): with open('split.wast', 'w') as o: o.write(module + '\n'.join(asserts)) - cmd = WASM2JS + ['split.wast'] + cmd = WASM2JS + ['split.wast', '-O'] if 'emscripten' in wasm: cmd += ['--emscripten'] out = run_command(cmd) -- cgit v1.2.3