diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/post.js | 4 | ||||
-rw-r--r-- | src/wasm-js.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/js/post.js b/src/js/post.js index 3c7bd05a4..4c616e463 100644 --- a/src/js/post.js +++ b/src/js/post.js @@ -21,8 +21,8 @@ wasmJS['providedTotalMemory'] = theBuffer.byteLength; Module['reallocBuffer'] = function(size) { - var old = Module['buffer'] - Module['__growWasmMemory'](size); // tiny wasm method that just does grow_memory + var old = Module['buffer']; + wasmJS['asmExports']['__growWasmMemory'](size); // tiny wasm method that just does grow_memory return Module['buffer'] !== old ? Module['buffer'] : null; // if it was reallocated, it changed }; diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index 3de6319cb..7d1120474 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -14,7 +14,7 @@ using namespace cashew; using namespace wasm; -IString GROW_WASM_MEMORY("_growWasmMemory"), +IString GROW_WASM_MEMORY("__growWasmMemory"), NEW_SIZE("newSize"); // global singletons |