mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Wasm: add preloading logic for Types section
This commit is contained in:
parent
59278a02d6
commit
fc677e8d58
3 changed files with 96 additions and 3 deletions
|
@ -138,6 +138,8 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32TestResult>(
|
|||
|
||||
T::insert_test_wrapper(arena, &mut wasm_module, TEST_WRAPPER_NAME, main_fn_index);
|
||||
|
||||
roc_gen_wasm::wasm_module::sections::test_assert_preload(arena, &wasm_module);
|
||||
|
||||
let needs_linking = !wasm_module.import.entries.is_empty();
|
||||
|
||||
let mut app_module_bytes = std::vec::Vec::with_capacity(4096);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue