aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2020-11-25 20:35:26 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2020-11-25 20:35:26 +0000
commit7026c6c484c51ae66c094c145c4cc873c97ea438 (patch)
tree1232533206f311ef1a994caaf5dc187fa64ac773 /src/main.rs
parentWell, it compiles... (diff)
downloadsl0ppij-7026c6c484c51ae66c094c145c4cc873c97ea438.tar.gz
sl0ppij-7026c6c484c51ae66c094c145c4cc873c97ea438.tar.xz
sl0ppij-7026c6c484c51ae66c094c145c4cc873c97ea438.zip
Don't crash (sometimes)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 2c152198..a7cac65f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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)?;