mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Rename validate to validate_with_features.
This commit is contained in:
parent
86316c474a
commit
7a1ddc0b5a
@ -150,7 +150,7 @@ pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingPa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn validate(bytes: &[u8], features: &Features) -> CompileResult<()> {
|
fn validate_with_features(bytes: &[u8], features: &Features) -> CompileResult<()> {
|
||||||
let mut parser =
|
let mut parser =
|
||||||
wasmparser::ValidatingParser::new(bytes, Some(validating_parser_config(features)));
|
wasmparser::ValidatingParser::new(bytes, Some(validating_parser_config(features)));
|
||||||
loop {
|
loop {
|
||||||
@ -180,7 +180,7 @@ impl<
|
|||||||
_: Token,
|
_: Token,
|
||||||
) -> CompileResult<ModuleInner> {
|
) -> CompileResult<ModuleInner> {
|
||||||
if requires_pre_validation(MCG::backend_id()) {
|
if requires_pre_validation(MCG::backend_id()) {
|
||||||
validate(wasm, &compiler_config.features)?;
|
validate_with_features(wasm, &compiler_config.features)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut mcg = MCG::new();
|
let mut mcg = MCG::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user