Skip to content

Commit 30362a2

Browse files
committed
[test] Unify the trap message of "null function reference".
Signed-off-by: YiYing He <[email protected]>
1 parent 3dce987 commit 30362a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/core/call_ref.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
(assert_return (invoke "run" (i32.const 0)) (i32.const 0))
9595
(assert_return (invoke "run" (i32.const 3)) (i32.const -9))
9696

97-
(assert_trap (invoke "null") "null function")
97+
(assert_trap (invoke "null") "null function reference")
9898

9999
(assert_return (invoke "fac" (i64.const 0)) (i64.const 1))
100100
(assert_return (invoke "fac" (i64.const 1)) (i64.const 1))

test/core/return_call_ref.wast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
(assert_return (invoke "type-second-f32") (f32.const 32))
181181
(assert_return (invoke "type-second-f64") (f64.const 64.1))
182182

183-
(assert_trap (invoke "null") "null function")
183+
(assert_trap (invoke "null") "null function reference")
184184

185185
(assert_return (invoke "fac-acc" (i64.const 0) (i64.const 1)) (i64.const 1))
186186
(assert_return (invoke "fac-acc" (i64.const 1) (i64.const 1)) (i64.const 1))

0 commit comments

Comments
 (0)