mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 06:31:32 +00:00
List specific supported features for validator.
This commit is contained in:
@ -76,7 +76,19 @@ impl Compiler for LLVMCompiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn validate(bytes: &[u8]) -> Result<(), CompileError> {
|
fn validate(bytes: &[u8]) -> Result<(), CompileError> {
|
||||||
let mut parser = wasmparser::ValidatingParser::new(bytes, None);
|
let mut parser = wasmparser::ValidatingParser::new(
|
||||||
|
bytes,
|
||||||
|
Some(wasmparser::ValidatingParserConfig {
|
||||||
|
operator_config: wasmparser::OperatorValidatorConfig {
|
||||||
|
enable_threads: false,
|
||||||
|
enable_reference_types: false,
|
||||||
|
enable_simd: false,
|
||||||
|
enable_bulk_memory: false,
|
||||||
|
},
|
||||||
|
mutable_global_imports: false,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let state = parser.read();
|
let state = parser.read();
|
||||||
match *state {
|
match *state {
|
||||||
|
Reference in New Issue
Block a user