From 30362a2a3345c4a8f2d63331c1dc15f328c8ccea Mon Sep 17 00:00:00 2001 From: YiYing He Date: Sat, 2 Dec 2023 20:20:49 +0800 Subject: [PATCH] [test] Unify the trap message of "null function reference". Signed-off-by: YiYing He --- test/core/call_ref.wast | 2 +- test/core/return_call_ref.wast | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/call_ref.wast b/test/core/call_ref.wast index 42533959..da480a7f 100644 --- a/test/core/call_ref.wast +++ b/test/core/call_ref.wast @@ -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)) diff --git a/test/core/return_call_ref.wast b/test/core/return_call_ref.wast index 353811f0..2b495f46 100644 --- a/test/core/return_call_ref.wast +++ b/test/core/return_call_ref.wast @@ -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))