Thread the feature support through to wasmparser.

This commit is contained in:
Nick Lewycky 2019-08-08 19:10:46 -07:00
parent cca419c982
commit 86346d6ebe
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,
}; };