diff options
Diffstat (limited to 'benches/selfhosted.rs')
| -rw-r--r-- | benches/selfhosted.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benches/selfhosted.rs b/benches/selfhosted.rs index 700e3f6..78ea48b 100644 --- a/benches/selfhosted.rs +++ b/benches/selfhosted.rs @@ -9,7 +9,7 @@ fn run_tinywasm(module: TinyWasmModule) { let mut store = Store::default(); let mut imports = Imports::default(); imports.define("env", "printi32", Extern::typed_func(|_: FuncContext<'_>, _: i32| Ok(()))).expect("define"); - let instance = module.instantiate(&mut store, Some(imports)).expect("instantiate"); + let instance = ModuleInstance::instantiate(&mut store, module, Some(imports)).expect("instantiate"); let hello = instance.exported_func::<(), ()>(&mut store, "hello").expect("exported_func"); hello.call(&mut store, ()).expect("call"); } |
