mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
Merge pull request #1072 from alexcrichton/dense
Ensure our JS heap is a dense array
This commit is contained in:
commit
0e1494f2a6
@ -907,6 +907,7 @@ impl<'a> Context<'a> {
|
||||
return;
|
||||
}
|
||||
self.global(&format!("const heap = new Array({});", INITIAL_HEAP_OFFSET));
|
||||
self.global("heap.fill(undefined);");
|
||||
self.global(&format!("heap.push({});", INITIAL_HEAP_VALUES.join(", ")));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user