mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
test_gen: update wasm linking tests to work withx wasm3 runtime
This commit is contained in:
parent
6da71008cb
commit
0b0c54d676
3 changed files with 38 additions and 65 deletions
|
@ -185,9 +185,10 @@ where
|
|||
.create_runtime(1024 * 60)
|
||||
.expect("Unable to create runtime");
|
||||
|
||||
let module = Module::parse(&env, &wasm_bytes[..]).expect("Unable to parse module");
|
||||
|
||||
let mut module = rt.load_module(module).expect("Unable to load module");
|
||||
let parsed_module = Module::parse(&env, &wasm_bytes[..]).expect("Unable to parse module");
|
||||
let mut module = rt
|
||||
.load_module(parsed_module)
|
||||
.expect("Unable to load module");
|
||||
|
||||
let panic_msg: Rc<Mutex<Option<(i32, i32)>>> = Default::default();
|
||||
let panic_msg_for_closure = panic_msg.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue