mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-19 11:51:22 +00:00
Fix some spectest imports and namespace_table issue
This commit is contained in:
@ -98,7 +98,6 @@ pub fn read_module<
|
||||
use wasmparser::ParserState;
|
||||
let state = parser.read();
|
||||
match *state {
|
||||
ParserState::EndWasm => break,
|
||||
ParserState::Error(err) => Err(LoadError::Parse(err))?,
|
||||
ParserState::TypeSectionEntry(ref ty) => {
|
||||
info.write()
|
||||
@ -369,7 +368,16 @@ pub fn read_module<
|
||||
|
||||
info.write().unwrap().globals.push(global_init);
|
||||
}
|
||||
|
||||
ParserState::EndWasm => {
|
||||
if namespace_builder.is_some() {
|
||||
info.write().unwrap().namespace_table =
|
||||
namespace_builder.take().unwrap().finish();
|
||||
}
|
||||
if name_builder.is_some() {
|
||||
info.write().unwrap().name_table = name_builder.take().unwrap().finish();
|
||||
}
|
||||
break;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user