summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast.fromBinary
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-01-06 13:04:11 -0800
committerGitHub <noreply@github.com>2020-01-06 13:04:11 -0800
commit591914d8de144cf76432e6fec7dbfb510366cabb (patch)
tree570f72f7213b8b5d4e5ab114c931cb9def915754 /test/exception-handling.wast.fromBinary
parentc971df1e943cafba05385f341126a772d8e2aa0c (diff)
downloadbinaryen-591914d8de144cf76432e6fec7dbfb510366cabb.tar.gz
binaryen-591914d8de144cf76432e6fec7dbfb510366cabb.tar.bz2
binaryen-591914d8de144cf76432e6fec7dbfb510366cabb.zip
Allow subtype in throw instruction (#2568)
This allows subtype for arguments of `throw`. This also renames `shouldBeSubTypeOrUnreachable` to `shouldBeSubTypeOrFirstIsUnreachable`, to be consistent with `shouldBeEqualOrFirstIsUnreachable`.
Diffstat (limited to 'test/exception-handling.wast.fromBinary')
-rw-r--r--test/exception-handling.wast.fromBinary5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/exception-handling.wast.fromBinary b/test/exception-handling.wast.fromBinary
index 369b17dd9..b5aba7e15 100644
--- a/test/exception-handling.wast.fromBinary
+++ b/test/exception-handling.wast.fromBinary
@@ -1,8 +1,10 @@
(module
(type $none_=>_none (func))
(type $i32_=>_none (func (param i32)))
+ (type $anyref_=>_none (func (param anyref)))
(type $exnref_=>_exnref (func (param exnref) (result exnref)))
(event $event$0 (attr 0) (param i32))
+ (event $event$1 (attr 0) (param anyref))
(func $exnref_test (; 0 ;) (param $0 exnref) (result exnref)
(local.get $0)
)
@@ -84,6 +86,9 @@
)
)
)
+ (throw $event$1
+ (ref.null)
+ )
)
)