Update to wasmparser 0.22.
This commit is contained in:
@@ -253,7 +253,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
|
||||
}
|
||||
Operator::BrIf { relative_depth } => translate_br_if(relative_depth, builder, state),
|
||||
Operator::BrTable { table } => {
|
||||
let (depths, default) = table.read_table();
|
||||
let (depths, default) = table.read_table()?;
|
||||
let mut min_depth = default;
|
||||
for depth in &*depths {
|
||||
if *depth < min_depth {
|
||||
|
||||
@@ -19,8 +19,8 @@ use translation_utils::{
|
||||
use wasmparser::{
|
||||
self, CodeSectionReader, Data, DataSectionReader, Element, ElementSectionReader, Export,
|
||||
ExportSectionReader, ExternalKind, FuncType, FunctionSectionReader, GlobalSectionReader,
|
||||
GlobalType, Import, ImportSectionEntryType, ImportSectionReader, MemorySectionReader,
|
||||
MemoryType, Operator, TableSectionReader, TypeSectionReader,
|
||||
GlobalType, ImportSectionEntryType, ImportSectionReader, MemorySectionReader, MemoryType,
|
||||
Operator, TableSectionReader, TypeSectionReader,
|
||||
};
|
||||
|
||||
/// Parses the Type section of the wasm module.
|
||||
|
||||
Reference in New Issue
Block a user