summaryrefslogtreecommitdiff
path: root/test/wasm2js/forward.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/forward.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/forward.2asm.js')
-rw-r--r--test/wasm2js/forward.2asm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/wasm2js/forward.2asm.js b/test/wasm2js/forward.2asm.js
index 1fd671e49..684259f1e 100644
--- a/test/wasm2js/forward.2asm.js
+++ b/test/wasm2js/forward.2asm.js
@@ -27,7 +27,7 @@ function asmFunc(global, env, buffer) {
if ((n | 0) == (0 | 0)) {
$6 = 1
} else {
- $6 = odd(n - 1 | 0 | 0) | 0
+ $6 = odd(n - 1 | 0) | 0
}
return $6 | 0;
}
@@ -38,7 +38,7 @@ function asmFunc(global, env, buffer) {
if ((n | 0) == (0 | 0)) {
$6 = 0
} else {
- $6 = even(n - 1 | 0 | 0) | 0
+ $6 = even(n - 1 | 0) | 0
}
return $6 | 0;
}