Skip to content

Commit

Permalink
Adjust WasmFeatures for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jul 24, 2023
1 parent 1d56e2f commit e39f720
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/vm/src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,14 @@ pub fn validate_wasm<'a>(
mut handle_payload: impl FnMut(Payload<'a>) -> VmResult<()>,
) -> VmResult<()> {
let mut validator = Validator::new_with_features(WasmFeatures {
mutable_global: false,
saturating_float_to_int: false,
sign_extension: true,
reference_types: true,
multi_value: false,
bulk_memory: false,
deterministic_only: true,
component_model: false,
simd: false,
relaxed_simd: false,
threads: false,
tail_call: false,
deterministic_only: true,
multi_memory: false,
exceptions: false,
memory64: false,
extended_const: false,
..Default::default()
});

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

0 comments on commit e39f720

Please sign in to comment.