diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-24 10:22:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 10:22:56 -0700 |
commit | f81c78bd62548a1eabc27adfbcbdc44cefb320cf (patch) | |
tree | 34db3cb4614640334342e11f3a24321e16422aff /scripts | |
parent | 5d3fcffdd9f9d9de10a0ce60d1e0163693c007c3 (diff) | |
download | binaryen-f81c78bd62548a1eabc27adfbcbdc44cefb320cf.tar.gz binaryen-f81c78bd62548a1eabc27adfbcbdc44cefb320cf.tar.bz2 binaryen-f81c78bd62548a1eabc27adfbcbdc44cefb320cf.zip |
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.)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/wasm2js.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |