diff options
author | Alon Zakai <azakai@google.com> | 2019-05-02 16:40:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 16:40:20 -0700 |
commit | 80b509cfb8fa35d229643f35e423e6d049ab8849 (patch) | |
tree | bb978cf9ab6293876b38fd1eb476126fe34f8b5b /test/wasm2js/br_table_temp.2asm.js | |
parent | 29e7e4483dc04ca8e882f12871c7eb395c82de00 (diff) | |
download | binaryen-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/br_table_temp.2asm.js')
-rw-r--r-- | test/wasm2js/br_table_temp.2asm.js | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/test/wasm2js/br_table_temp.2asm.js b/test/wasm2js/br_table_temp.2asm.js index 130e77bba..f8e7c4700 100644 --- a/test/wasm2js/br_table_temp.2asm.js +++ b/test/wasm2js/br_table_temp.2asm.js @@ -12722,13 +12722,11 @@ function asmFunc(global, env, buffer) { var $4_1 = 0, $6_1 = 0; block : { if ($0) { - { - $4_1 = 3; - switch (0 | 0) { - default: - break block; - }; - } + $4_1 = 3; + switch (0 | 0) { + default: + break block; + }; } else { $6_1 = $1_1 } @@ -12746,17 +12744,15 @@ function asmFunc(global, env, buffer) { if ($0) { $7_1 = $1_1 } else { - { - $4_1 = 4; - $5_1 = $4_1; - $6_1 = $4_1; - switch (0 | 0) { - case 0: - break block; - default: - break if_; - }; - } + $4_1 = 4; + $5_1 = $4_1; + $6_1 = $4_1; + switch (0 | 0) { + case 0: + break block; + default: + break if_; + }; } $6_1 = $7_1; } |