mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
test_gen: update WasiDispatcher
This commit is contained in:
parent
4164128f9e
commit
b73e022336
2 changed files with 3 additions and 3 deletions
|
@ -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)?;
|
||||
|
|
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue