Passing all spectests

This commit is contained in:
Lachlan Sneff
2019-01-17 14:13:28 -08:00
parent 1dbbaa30b6
commit 93d0918122
7 changed files with 24 additions and 122 deletions

View File

@ -47,8 +47,8 @@ impl Module {
}
/// Instantiate a webassembly module with the provided imports.
pub fn instantiate(&self, imports: &mut Imports) -> Result<Instance, String> {
Instance::new(Rc::clone(&self.0), imports)
pub fn instantiate(&self, imports: Imports) -> Result<Instance, String> {
Instance::new(Rc::clone(&self.0), Box::new(imports))
}
}