diff options
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index d0951f671..561dc83ae 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -17,7 +17,7 @@ using namespace wasm; // global singletons Asm2WasmBuilder* asm2wasm = nullptr; ModuleInstance* instance = nullptr; -Module* module = nullptr; +AllocatingModule* module = nullptr; bool wasmJSDebug = false; // receives asm.js code, parses into wasm and returns an instance handle. @@ -42,7 +42,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE load_asm(char *input) { cashew::Parser<Ref, DotZeroValueBuilder> builder; Ref asmjs = builder.parseToplevel(input); - module = new Module(); + module = new AllocatingModule(); module->memory.initial = EM_ASM_INT_V({ return Module['providedTotalMemory']; // we receive the size of memory from emscripten }); |