test_gen: update WasiDispatcher

This commit is contained in:
Brian Carroll 2022-12-15 21:56:43 +00:00
parent 4164128f9e
commit b73e022336
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 3 additions and 3 deletions

View file

@ -237,7 +237,7 @@ where
T: FromWasm32Memory + Wasm32Result,
{
let dispatcher = TestDispatcher {
wasi: wasi::WasiDispatcher { args: &[] },
wasi: wasi::WasiDispatcher::default(),
};
let is_debug_mode = roc_debug_flags::dbg_set!(roc_debug_flags::ROC_LOG_WASM_INTERP);
let mut inst = Instance::for_module(&arena, &module, dispatcher, is_debug_mode)?;
@ -266,7 +266,7 @@ where
.map_err(|e| format!("{:?}", e))?;
let dispatcher = TestDispatcher {
wasi: wasi::WasiDispatcher { args: &[] },
wasi: wasi::WasiDispatcher::default(),
};
let is_debug_mode = roc_debug_flags::dbg_set!(roc_debug_flags::ROC_LOG_WASM_INTERP);
let mut inst = Instance::for_module(&arena, &module, dispatcher, is_debug_mode)?;

View file

@ -225,7 +225,7 @@ fn execute_wasm_module<'a>(arena: &'a Bump, orig_module: WasmModule<'a>) -> Resu
};
let dispatcher = TestDispatcher {
wasi: wasi::WasiDispatcher { args: &[] },
wasi: wasi::WasiDispatcher::default(),
};
let is_debug_mode = true;
let mut inst = Instance::for_module(&arena, &module, dispatcher, is_debug_mode)?;