summaryrefslogtreecommitdiff
path: root/test/spec/exception-handling.wast
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-01-22 18:07:46 +0900
committerGitHub <noreply@github.com>2021-01-22 18:07:46 +0900
commit6d62e3c4be466888239a89c2e98713f60074aaea (patch)
treef2b55ef6eed4be74c2faee998f15ab46231083a9 /test/spec/exception-handling.wast
parent69ff866fc7e54f25d8d8598581aa3553cb87603b (diff)
downloadbinaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.gz
binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.tar.bz2
binaryen-6d62e3c4be466888239a89c2e98713f60074aaea.zip
Remove exnref and br_on_exn (#3505)
This removes `exnref` type and `br_on_exn` instruction.
Diffstat (limited to 'test/spec/exception-handling.wast')
-rw-r--r--test/spec/exception-handling.wast44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/spec/exception-handling.wast b/test/spec/exception-handling.wast
index d951441e0..ebca3a009 100644
--- a/test/spec/exception-handling.wast
+++ b/test/spec/exception-handling.wast
@@ -263,47 +263,3 @@
)
"event's param numbers must match"
)
-
-(assert_invalid
- (module
- (event $e-i32 (attr 0) (param i32))
- (func $f0 (result i32)
- (block $l0 (result i32)
- (drop
- (br_on_exn $l0 $e-i32 (i32.const 0))
- )
- (i32.const 0)
- )
- )
- )
- "br_on_exn's argument must be unreachable or exnref type"
-)
-
-(assert_invalid
- (module
- (event $e-i32 (attr 0) (param i32))
- (func $f0 (result i32) (local $0 exnref)
- (block $l0 (result i32)
- (i32.eqz
- (br_on_exn $l0 $e-i32 (local.get $0))
- )
- )
- )
- )
- "i32.eqz input must be i32"
-)
-
-(assert_invalid
- (module
- (event $e-i32 (attr 0) (param i32))
- (func $f0 (result f32) (local $0 exnref)
- (block $l0 (result f32)
- (drop
- (br_on_exn $l0 $e-i32 (local.get $0))
- )
- (f32.const 0)
- )
- )
- )
- "block+breaks must have right type if breaks return a value"
-)