diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-04-22 14:00:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-22 14:00:35 -0700 |
commit | ff710e63eaed7cf8fbf3042843f6243597da49be (patch) | |
tree | 204c03398c17c136690a2798d099554e6698f4f2 /test/wasm2js/block.2asm.js | |
parent | f87de2ae0d430f8d4204df8fceb194c24e29b413 (diff) | |
download | binaryen-ff710e63eaed7cf8fbf3042843f6243597da49be.tar.gz binaryen-ff710e63eaed7cf8fbf3042843f6243597da49be.tar.bz2 binaryen-ff710e63eaed7cf8fbf3042843f6243597da49be.zip |
wasm2js: unreachability fixes (#2037)
Also test in pass-debug mode, for better coverage.
Diffstat (limited to 'test/wasm2js/block.2asm.js')
-rw-r--r-- | test/wasm2js/block.2asm.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/wasm2js/block.2asm.js b/test/wasm2js/block.2asm.js index cff354c48..3bb752e61 100644 --- a/test/wasm2js/block.2asm.js +++ b/test/wasm2js/block.2asm.js @@ -135,10 +135,8 @@ function asmFunc(global, env, buffer) { $0 = 0; $1_1 = $0; block : { - block47 : { - $2_1 = 1; - break block; - } + $2_1 = 1; + break block; } $0 = $1_1 + $2_1 | 0; $5_1 = $0; @@ -151,10 +149,8 @@ function asmFunc(global, env, buffer) { $0 = $9_1 + $10_1 | 0; $13_1 = $0; block51 : { - block52 : { - $14_1 = 8; - break block51; - } + $14_1 = 8; + break block51; } $0 = $13_1 + $14_1 | 0; return $0 | 0; |