mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-20 23:37:56 +03:00
wasm: initialise the heap with one page of memory (otherwise some tests crash)
This commit is contained in:
parent
f063064e01
commit
86d14b9391
@ -126,7 +126,8 @@ impl<'a> WasmBackend<'a> {
|
||||
init: ConstExpr::I32(stack_heap_boundary as i32),
|
||||
});
|
||||
|
||||
module.memory = MemorySection::new(env.arena, stack_heap_boundary);
|
||||
module.memory =
|
||||
MemorySection::new(env.arena, stack_heap_boundary + MemorySection::PAGE_SIZE);
|
||||
module.export.append(Export {
|
||||
name: MEMORY_NAME,
|
||||
ty: ExportType::Mem,
|
||||
|
Loading…
Reference in New Issue
Block a user