summaryrefslogtreecommitdiff
path: root/test/wasm2js/emscripten-grow-yes.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/emscripten-grow-yes.2asm.js')
-rw-r--r--test/wasm2js/emscripten-grow-yes.2asm.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/wasm2js/emscripten-grow-yes.2asm.js b/test/wasm2js/emscripten-grow-yes.2asm.js
index 5acd1e0fe..157b5510d 100644
--- a/test/wasm2js/emscripten-grow-yes.2asm.js
+++ b/test/wasm2js/emscripten-grow-yes.2asm.js
@@ -1,6 +1,8 @@
function instantiate(asmLibraryArg, wasmMemory) {
-function asmFunc(global, env, buffer) {
+function asmFunc(global, env) {
var memory = env.memory;
+ var buffer = memory.buffer;
+ memory.grow = __wasm_memory_grow;
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
var HEAP32 = new global.Int32Array(buffer);