summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-validator.cpp')
-rw-r--r--src/wasm/wasm-validator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp
index 0d45a4773..c1836a7ff 100644
--- a/src/wasm/wasm-validator.cpp
+++ b/src/wasm/wasm-validator.cpp
@@ -2504,11 +2504,11 @@ void FunctionValidator::visitCallRef(CallRef* curr) {
void FunctionValidator::visitRefI31(RefI31* curr) {
shouldBeTrue(
- getModule()->features.hasGC(), curr, "i31.new requires gc [--enable-gc]");
+ getModule()->features.hasGC(), curr, "ref.i31 requires gc [--enable-gc]");
shouldBeSubType(curr->value->type,
Type::i32,
curr->value,
- "i31.new's argument should be i32");
+ "ref.i31's argument should be i32");
}
void FunctionValidator::visitI31Get(I31Get* curr) {