summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast.fromBinary.noDebugInfo
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-11-11 14:27:53 -0800
committerGitHub <noreply@github.com>2019-11-11 14:27:53 -0800
commit63ddbc04cf75a45a05a2b1f11564563915ebdbec (patch)
tree4a449c0c53642aa803f48ce33d55155e9771dc8f /test/exception-handling.wast.fromBinary.noDebugInfo
parent4ad7a2cfd0b3ac14fbe767d50e4994f8297d37f6 (diff)
downloadbinaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.tar.gz
binaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.tar.bz2
binaryen-63ddbc04cf75a45a05a2b1f11564563915ebdbec.zip
Fix catch parsing (#2428)
- When a catch body is a block, call its `finalize` function with the correct type - Don't create a block when there's one instruction in a catch body - Remove `makeCatch` from gen-s-parser.py; it's not necessary - Fix a test case that has a `catch` without `try`
Diffstat (limited to 'test/exception-handling.wast.fromBinary.noDebugInfo')
-rw-r--r--test/exception-handling.wast.fromBinary.noDebugInfo22
1 files changed, 21 insertions, 1 deletions
diff --git a/test/exception-handling.wast.fromBinary.noDebugInfo b/test/exception-handling.wast.fromBinary.noDebugInfo
index 3ef95033c..fca25f7d5 100644
--- a/test/exception-handling.wast.fromBinary.noDebugInfo
+++ b/test/exception-handling.wast.fromBinary.noDebugInfo
@@ -44,7 +44,27 @@
)
)
)
- (unreachable)
+ (try
+ (nop)
+ (catch
+ (drop
+ (exnref.pop)
+ )
+ )
+ )
+ (try
+ (block
+ (call $1)
+ (call $2)
+ )
+ (catch
+ (drop
+ (exnref.pop)
+ )
+ (call $1)
+ (call $2)
+ )
+ )
)
)