[WebAssembly] Add TODO

This commit is contained in:
Sam Clegg 2018-01-17 14:38:49 -08:00
parent dbd68988a8
commit b93ae1f7eb

View File

@ -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);