Skip to content

Commit 373b9fb

Browse files
authored
Update spec test suite (#1878)
* Minor test updates for latest spec test suite * Slightly update an error message * Update features enabled for various proposal names * Update the spec test suite
1 parent 9ac69f3 commit 373b9fb

File tree

205 files changed

+15321
-1574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+15321
-1574
lines changed

crates/wasmparser/src/validator/operators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ where
10491049
{
10501050
bail!(
10511051
self.offset,
1052-
"indirect calls must go through a table with type <= funcref",
1052+
"type mismatch: indirect calls must go through a table with type <= funcref",
10531053
);
10541054
}
10551055
self.pop_operand(Some(tab.index_type()))?;

tests/roundtrip.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,10 @@ impl TestState {
662662
features.insert(WasmFeatures::REFERENCE_TYPES);
663663
features.insert(WasmFeatures::GC);
664664
}
665-
"custom-page-sizes" => features.insert(WasmFeatures::CUSTOM_PAGE_SIZES),
665+
"custom-page-sizes" => {
666+
features.insert(WasmFeatures::CUSTOM_PAGE_SIZES);
667+
features.insert(WasmFeatures::MULTI_MEMORY);
668+
}
666669
"import-extended.wast" => {
667670
features.insert(WasmFeatures::COMPONENT_MODEL_NESTED_NAMES);
668671
}
@@ -675,6 +678,9 @@ impl TestState {
675678
"stack-switching" => {
676679
features.insert(WasmFeatures::STACK_SWITCHING);
677680
}
681+
"wide-arithmetic" => {
682+
features.insert(WasmFeatures::WIDE_ARITHMETIC);
683+
}
678684
_ => {}
679685
}
680686
}

0 commit comments

Comments
 (0)