diff options
Diffstat (limited to 'test/wasm2js/emscripten-grow-no.2asm.js')
-rw-r--r-- | test/wasm2js/emscripten-grow-no.2asm.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/wasm2js/emscripten-grow-no.2asm.js b/test/wasm2js/emscripten-grow-no.2asm.js index 895a54fc2..92a99dfb7 100644 --- a/test/wasm2js/emscripten-grow-no.2asm.js +++ b/test/wasm2js/emscripten-grow-no.2asm.js @@ -25,6 +25,10 @@ function asmFunc(global, env, buffer) { // EMSCRIPTEN_START_FUNCS; // EMSCRIPTEN_END_FUNCS; var FUNCTION_TABLE = []; + function __wasm_memory_size() { + return buffer.byteLength / 65536 | 0; + } + return { "memory": Object.create(Object.prototype, { "grow": { |