Don't crash (sometimes)
This commit is contained in:
parent
06b5ef8c26
commit
7026c6c484
1 changed files with 2 additions and 0 deletions
|
|
@ -293,6 +293,8 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) {
|
|||
"host_open_file",
|
||||
Function::new_native_with_env(&store, Arc::clone(&wasi_env.state), host_open_file),
|
||||
); */
|
||||
fn noop() {}
|
||||
host_exports.insert("host_open_file", Function::new_native(&store, noop));
|
||||
import_object.register("mosaic", host_exports);
|
||||
let instance = Instance::new(&module, &import_object)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue