Wasm: Serialize WasmModule without linking info

This commit is contained in:
Brian Carroll 2022-01-08 16:12:48 +00:00
parent b8ab6af203
commit 5a39002e8b
6 changed files with 75 additions and 5 deletions

View file

@ -138,7 +138,7 @@ fn compile_roc_to_wasm_bytes<'a, T: Wasm32TestResult>(
let needs_linking = !wasm_module.import.entries.is_empty();
let mut app_module_bytes = std::vec::Vec::with_capacity(4096);
wasm_module.serialize_mut(&mut app_module_bytes);
wasm_module.serialize(&mut app_module_bytes);
(app_module_bytes, needs_linking)
}