summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast.fromBinary
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-06-10 23:44:57 -0700
committerGitHub <noreply@github.com>2021-06-10 23:44:57 -0700
commitca263c00ec8ff3b7c51d066b273eeee50180091b (patch)
tree6ee8fa964b5ea8a1dc30cdc1b4e720b6d92d2056 /test/exception-handling.wast.fromBinary
parent83ae39af1f8ffe67856b16f7ee13de066169b48f (diff)
downloadbinaryen-ca263c00ec8ff3b7c51d066b273eeee50180091b.tar.gz
binaryen-ca263c00ec8ff3b7c51d066b273eeee50180091b.tar.bz2
binaryen-ca263c00ec8ff3b7c51d066b273eeee50180091b.zip
[EH] Allow catch/delegate-less trys (#3924)
This removes the restriction that `try` should have at least one `catch`/`catch_all`/`delegate`. See WebAssembly/exception-handling#157.
Diffstat (limited to 'test/exception-handling.wast.fromBinary')
-rw-r--r--test/exception-handling.wast.fromBinary7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/exception-handling.wast.fromBinary b/test/exception-handling.wast.fromBinary
index 851ec0eb4..ff9a71f28 100644
--- a/test/exception-handling.wast.fromBinary
+++ b/test/exception-handling.wast.fromBinary
@@ -195,6 +195,13 @@
)
)
)
+ (try
+ (do
+ (throw $event$0
+ (i32.const 0)
+ )
+ )
+ )
)
(func $delegate-test
(try $label$9