mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
Thread the feature support through to wasmparser.
This commit is contained in:
parent
cca419c982
commit
86346d6ebe
@ -140,7 +140,7 @@ impl<
|
|||||||
pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingParserConfig {
|
pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingParserConfig {
|
||||||
wasmparser::ValidatingParserConfig {
|
wasmparser::ValidatingParserConfig {
|
||||||
operator_config: wasmparser::OperatorValidatorConfig {
|
operator_config: wasmparser::OperatorValidatorConfig {
|
||||||
enable_threads: false,
|
enable_threads: features.threads,
|
||||||
enable_reference_types: false,
|
enable_reference_types: false,
|
||||||
enable_simd: features.simd,
|
enable_simd: features.simd,
|
||||||
enable_bulk_memory: false,
|
enable_bulk_memory: false,
|
||||||
|
@ -140,7 +140,7 @@ pub fn validate_and_report_errors_with_features(
|
|||||||
enable_bulk_memory: false,
|
enable_bulk_memory: false,
|
||||||
enable_multi_value: false,
|
enable_multi_value: false,
|
||||||
enable_reference_types: false,
|
enable_reference_types: false,
|
||||||
enable_threads: false,
|
enable_threads: features.threads,
|
||||||
},
|
},
|
||||||
mutable_global_imports: true,
|
mutable_global_imports: true,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user