summaryrefslogtreecommitdiff
path: root/test/wasm2js/labels.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-05-02 16:40:20 -0700
committerGitHub <noreply@github.com>2019-05-02 16:40:20 -0700
commit80b509cfb8fa35d229643f35e423e6d049ab8849 (patch)
treebb978cf9ab6293876b38fd1eb476126fe34f8b5b /test/wasm2js/labels.2asm.js
parent29e7e4483dc04ca8e882f12871c7eb395c82de00 (diff)
downloadbinaryen-80b509cfb8fa35d229643f35e423e6d049ab8849.tar.gz
binaryen-80b509cfb8fa35d229643f35e423e6d049ab8849.tar.bz2
binaryen-80b509cfb8fa35d229643f35e423e6d049ab8849.zip
wasm2js: don't emit obviously unnecessary parens (#2080)
A minifier would probably remove them later anyhow, but they make reading the code annoying and hard.
Diffstat (limited to 'test/wasm2js/labels.2asm.js')
-rw-r--r--test/wasm2js/labels.2asm.js24
1 files changed, 8 insertions, 16 deletions
diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js
index 31955c4e4..6add316dc 100644
--- a/test/wasm2js/labels.2asm.js
+++ b/test/wasm2js/labels.2asm.js
@@ -37,10 +37,8 @@ function asmFunc(global, env, buffer) {
cont : while (1) {
i = i + 1 | 0;
if ((i | 0) == (5 | 0)) {
- {
- $6_1 = i;
- break exit;
- }
+ $6_1 = i;
+ break exit;
}
continue cont;
};
@@ -58,10 +56,8 @@ function asmFunc(global, env, buffer) {
continue cont
}
if ((i | 0) == (8 | 0)) {
- {
- $8_1 = i;
- break exit;
- }
+ $8_1 = i;
+ break exit;
}
i = i + 1 | 0;
continue cont;
@@ -76,10 +72,8 @@ function asmFunc(global, env, buffer) {
i = i + 1 | 0;
exit : {
if ((i | 0) == (5 | 0)) {
- {
- $6_1 = i;
- break exit;
- }
+ $6_1 = i;
+ break exit;
}
$6_1 = i;
}
@@ -94,10 +88,8 @@ function asmFunc(global, env, buffer) {
cont : while (1) {
i = i + i | 0;
if (i >>> 0 > max >>> 0) {
- {
- $9_1 = i;
- break exit;
- }
+ $9_1 = i;
+ break exit;
}
continue cont;
};