diff options
-rw-r--r-- | src/wasm/wasm-validator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 41ddd00f5..2d00c4b67 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -2296,10 +2296,9 @@ void FunctionValidator::visitTableGrow(TableGrow* curr) { } void FunctionValidator::visitTableFill(TableFill* curr) { - shouldBeTrue( - getModule()->features.hasBulkMemory(), - curr, - "table.fill requires reference types [--enable-reference-types]"); + shouldBeTrue(getModule()->features.hasBulkMemory(), + curr, + "table.fill requires bulk-memory [--enable-bulk-memory]"); auto* table = getModule()->getTableOrNull(curr->table); if (shouldBeTrue(!!table, curr, "table.fill table must exist")) { shouldBeSubType(curr->value->type, |