diff options
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index dc385e5e3..ab0923fb8 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -53,6 +53,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { Ref asmjs = builder.parseToplevel(input); module = new Module(); + module->memorySize = 16*1024*1024; // TODO: receive this from emscripten if (debug) std::cerr << "wasming...\n"; asm2wasm = new Asm2WasmBuilder(*module); |