Upgrade to walrus 0.4

Also be sure to have an explicit GC pass!
This commit is contained in:
Alex Crichton
2019-02-19 13:07:00 -08:00
parent 5b0cfd7cea
commit 8fb705a1ef
9 changed files with 21 additions and 24 deletions

View File

@ -202,7 +202,7 @@ impl Bindgen {
// This means that whenever we encounter an import or export we'll
// execute a shim function which informs us about its type so we can
// then generate the appropriate bindings.
let mut instance = wasm_bindgen_wasm_interpreter::Interpreter::new(&module);
let mut instance = wasm_bindgen_wasm_interpreter::Interpreter::new(&module)?;
let mut memories = module.memories.iter().map(|m| m.id());
let memory = memories.next();