summaryrefslogtreecommitdiff
path: root/test/wasm2js/minified-memory.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/minified-memory.2asm.js')
-rw-r--r--test/wasm2js/minified-memory.2asm.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/wasm2js/minified-memory.2asm.js b/test/wasm2js/minified-memory.2asm.js
index d7c73a6bb..e9a89166c 100644
--- a/test/wasm2js/minified-memory.2asm.js
+++ b/test/wasm2js/minified-memory.2asm.js
@@ -1,6 +1,8 @@
-function asmFunc(global, env, buffer) {
+function asmFunc(global, env) {
var memory = env.a;
+ 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);
@@ -72,8 +74,7 @@ var retasmFunc = asmFunc({
NaN,
Infinity
}, {
- abort: function() { throw new Error('abort'); }
- },
- memasmFunc
-);
+ abort: function() { throw new Error('abort'); },
+ a: { buffer : memasmFunc }
+ });
export var foo = retasmFunc.foo;