summaryrefslogtreecommitdiff
path: root/src/wasm-js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r--src/wasm-js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp
index 7eda4d10a..6a3e05725 100644
--- a/src/wasm-js.cpp
+++ b/src/wasm-js.cpp
@@ -51,7 +51,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
+ module->memory.initial = module->memory.max = 16*1024*1024; // TODO: receive this from emscripten
if (debug) std::cerr << "wasming...\n";
asm2wasm = new Asm2WasmBuilder(*module);