diff options
Diffstat (limited to 'test/wasm2js/dynamicLibrary.2asm.js.opt')
-rw-r--r-- | test/wasm2js/dynamicLibrary.2asm.js.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/wasm2js/dynamicLibrary.2asm.js.opt b/test/wasm2js/dynamicLibrary.2asm.js.opt index 862c1992a..61669987f 100644 --- a/test/wasm2js/dynamicLibrary.2asm.js.opt +++ b/test/wasm2js/dynamicLibrary.2asm.js.opt @@ -32,6 +32,10 @@ function asmFunc(global, env, buffer) { var FUNCTION_TABLE = []; FUNCTION_TABLE[import$tableBase + 0] = foo; FUNCTION_TABLE[import$tableBase + 1] = foo; + function __wasm_memory_size() { + return buffer.byteLength / 65536 | 0; + } + return { "baz": foo }; |