diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-05 11:40:31 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-05 11:40:31 -0800 |
commit | 644ef3072d389b9097e3a2709af5c40811e95839 (patch) | |
tree | b33d33a585881ad283342db071ddf20f1d90a833 /test/unit.2asm.js | |
parent | 8452a0b54562590e568b5f86fe35c0fb4001a78c (diff) | |
download | binaryen-644ef3072d389b9097e3a2709af5c40811e95839.tar.gz binaryen-644ef3072d389b9097e3a2709af5c40811e95839.tar.bz2 binaryen-644ef3072d389b9097e3a2709af5c40811e95839.zip |
fix parsing error in s-parser with functions with just a block and then more content
Diffstat (limited to 'test/unit.2asm.js')
-rw-r--r-- | test/unit.2asm.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit.2asm.js b/test/unit.2asm.js index 953437f63..ca62fb0d9 100644 --- a/test/unit.2asm.js +++ b/test/unit.2asm.js @@ -241,6 +241,16 @@ function asmFunc(global, env, buffer) { } + function block_and_after() { + var wasm2asm_i32$0 = 0; + waka : { + 1; + break waka; + } + wasm2asm_i32$0 = 0; + return wasm2asm_i32$0 | 0; + } + var FUNCTION_TABLE_d = [importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles, importedDoubles]; var FUNCTION_TABLE_v = [z, big_negative, z, z, w, w, z, w, z, z, z, z, z, z, z, z]; var FUNCTION_TABLE_vf = [cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg, cneg]; |