Skip to content

Commit b925601

Browse files
committed
Exhaustively specify all WasmFeatures
1 parent 5972815 commit b925601

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

packages/vm/src/parsed_wasm.rs

+16-3
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,28 @@ pub struct ParsedWasm<'a> {
3030
impl<'a> ParsedWasm<'a> {
3131
pub fn parse(wasm: &'a [u8]) -> VmResult<Self> {
3232
let mut validator = Validator::new_with_features(WasmFeatures {
33-
component_model: false,
33+
mutable_global: true,
34+
saturating_float_to_int: true,
35+
sign_extension: true,
36+
multi_value: true,
37+
floats: true,
38+
39+
reference_types: false,
40+
bulk_memory: false,
3441
simd: false,
3542
relaxed_simd: false,
3643
threads: false,
44+
tail_call: false,
3745
multi_memory: false,
46+
exceptions: false,
3847
memory64: false,
39-
gc: false,
48+
extended_const: false,
49+
component_model: false,
50+
function_references: false,
4051
memory_control: false,
41-
..Default::default()
52+
gc: false,
53+
component_model_values: false,
54+
component_model_nested_names: false,
4255
});
4356

4457
let mut this = Self {

0 commit comments

Comments
 (0)