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 20, 2023
1 parent 093fba1 commit f118d14
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 @@ -24,22 +24,14 @@ pub fn validate_wasm<'a>(
) -> VmResult<()> {
let mut validator = Validator::new();
validator.wasm_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,
module_linking: 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 f118d14

Please sign in to comment.