Skip to content

Commit

Permalink
Merge pull request #109 from q82419/main
Browse files Browse the repository at this point in the history
[test] Unify the trap message of "null function reference".
  • Loading branch information
rossberg authored Dec 4, 2023
2 parents 3dce987 + 30362a2 commit a416865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/core/call_ref.wast
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
(assert_return (invoke "run" (i32.const 0)) (i32.const 0))
(assert_return (invoke "run" (i32.const 3)) (i32.const -9))

(assert_trap (invoke "null") "null function")
(assert_trap (invoke "null") "null function reference")

(assert_return (invoke "fac" (i64.const 0)) (i64.const 1))
(assert_return (invoke "fac" (i64.const 1)) (i64.const 1))
Expand Down
2 changes: 1 addition & 1 deletion test/core/return_call_ref.wast
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
(assert_return (invoke "type-second-f32") (f32.const 32))
(assert_return (invoke "type-second-f64") (f64.const 64.1))

(assert_trap (invoke "null") "null function")
(assert_trap (invoke "null") "null function reference")

(assert_return (invoke "fac-acc" (i64.const 0) (i64.const 1)) (i64.const 1))
(assert_return (invoke "fac-acc" (i64.const 1) (i64.const 1)) (i64.const 1))
Expand Down

0 comments on commit a416865

Please sign in to comment.