mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Wasm: Serialize WasmModule without linking info
This commit is contained in:
parent
b8ab6af203
commit
5a39002e8b
6 changed files with 75 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue