Wasm: add preloading logic for Types section

This commit is contained in:
Brian Carroll 2022-01-08 12:02:20 +00:00
parent 59278a02d6
commit fc677e8d58
3 changed files with 96 additions and 3 deletions

View file

@ -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);