Skip to content

Commit e39f720

Browse files
committed
Adjust WasmFeatures for validation
1 parent 1d56e2f commit e39f720

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

packages/vm/src/static_analysis.rs

+2-10
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,14 @@ pub fn validate_wasm<'a>(
2323
mut handle_payload: impl FnMut(Payload<'a>) -> VmResult<()>,
2424
) -> VmResult<()> {
2525
let mut validator = Validator::new_with_features(WasmFeatures {
26-
mutable_global: false,
27-
saturating_float_to_int: false,
28-
sign_extension: true,
29-
reference_types: true,
30-
multi_value: false,
31-
bulk_memory: false,
26+
deterministic_only: true,
3227
component_model: false,
3328
simd: false,
3429
relaxed_simd: false,
3530
threads: false,
36-
tail_call: false,
37-
deterministic_only: true,
3831
multi_memory: false,
39-
exceptions: false,
4032
memory64: false,
41-
extended_const: false,
33+
..Default::default()
4234
});
4335

4436
for p in Parser::new(0).parse_all(wasm_code) {

0 commit comments

Comments
 (0)