summaryrefslogtreecommitdiff
path: root/test/wasm2js/func_ptrs.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-04-24 10:22:56 -0700
committerGitHub <noreply@github.com>2019-04-24 10:22:56 -0700
commitf81c78bd62548a1eabc27adfbcbdc44cefb320cf (patch)
tree34db3cb4614640334342e11f3a24321e16422aff /test/wasm2js/func_ptrs.2asm.js
parent5d3fcffdd9f9d9de10a0ce60d1e0163693c007c3 (diff)
downloadbinaryen-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 'test/wasm2js/func_ptrs.2asm.js')
-rw-r--r--test/wasm2js/func_ptrs.2asm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/wasm2js/func_ptrs.2asm.js b/test/wasm2js/func_ptrs.2asm.js
index 53bdf6c88..b1936241d 100644
--- a/test/wasm2js/func_ptrs.2asm.js
+++ b/test/wasm2js/func_ptrs.2asm.js
@@ -29,12 +29,12 @@ function asmFunc(global, env, buffer) {
function $4($0) {
$0 = $0 | 0;
- return $0 + 1 | 0 | 0;
+ return $0 + 1 | 0;
}
function $5(a) {
a = a | 0;
- return a - 2 | 0 | 0;
+ return a - 2 | 0;
}
function $6($0) {