mirror of
https://github.com/fluencelabs/musl
synced 2025-04-24 14:52:13 +00:00
[WebAssembly] Add TODO
This commit is contained in:
parent
dbd68988a8
commit
b93ae1f7eb
@ -43,6 +43,9 @@ if (typeof process === 'object' && typeof require === 'function') { // This is n
|
||||
}
|
||||
|
||||
function setHeap(m) {
|
||||
// TODO(sbc): Handle the case where wasm calls grow_memory. Currently we
|
||||
// call setHeap when we modify the memory from JavaScript, but not when
|
||||
// the wasm code modifies is.
|
||||
memory = m
|
||||
heap = m.buffer
|
||||
heap_uint8 = new Uint8Array(heap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user