summaryrefslogtreecommitdiff
path: root/test/spec/exception-handling.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec/exception-handling.wast')
-rw-r--r--test/spec/exception-handling.wast12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/spec/exception-handling.wast b/test/spec/exception-handling.wast
index c3b80896e..0188865ac 100644
--- a/test/spec/exception-handling.wast
+++ b/test/spec/exception-handling.wast
@@ -11,8 +11,8 @@
(throw $e-i32-f32 (i32.const 3) (f32.const 3.5))
)
- (func (export "rethrow_nullref")
- (rethrow (ref.null))
+ (func (export "rethrow_null")
+ (rethrow (ref.null exn))
)
(func (export "try_nothrow") (result i32)
@@ -74,10 +74,10 @@
)
)
- (func (export "br_on_exn_nullref") (result i32)
+ (func (export "br_on_exn_null") (result i32)
(block $l0 (result i32)
(drop
- (br_on_exn $l0 $e-i32 (ref.null))
+ (br_on_exn $l0 $e-i32 (ref.null exn))
)
(i32.const 0)
)
@@ -185,13 +185,13 @@
(assert_trap (invoke "throw_single_value"))
(assert_trap (invoke "throw_multiple_values"))
-(assert_trap (invoke "rethrow_nullref"))
+(assert_trap (invoke "rethrow_null"))
(assert_return (invoke "try_nothrow") (i32.const 3))
(assert_return (invoke "try_throw_catch") (i32.const 3))
(assert_return (invoke "try_call_catch") (i32.const 3))
(assert_trap (invoke "try_throw_rethrow"))
(assert_trap (invoke "try_call_rethrow"))
-(assert_trap (invoke "br_on_exn_nullref"))
+(assert_trap (invoke "br_on_exn_null"))
(assert_return (invoke "br_on_exn_match_no_value"))
(assert_return (invoke "br_on_exn_match_single_value") (i32.const 5))
(assert_return (invoke "br_on_exn_match_multiple_values") (tuple.make (i32.const 3) (f32.const 3.5)))