summaryrefslogtreecommitdiff
path: root/src/tools/wasm2js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm2js.cpp')
-rw-r--r--src/tools/wasm2js.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/wasm2js.cpp b/src/tools/wasm2js.cpp
index 67a5d33b6..bc35ae4eb 100644
--- a/src/tools/wasm2js.cpp
+++ b/src/tools/wasm2js.cpp
@@ -57,6 +57,7 @@ private:
SExpressionWasmBuilder& sexpBuilder;
Output& out;
Wasm2JSBuilder::Flags flags;
+ Module tempAllocationModule;
Ref emitAssertReturnFunc(Builder& wasmBuilder,
Element& e,
@@ -75,7 +76,7 @@ private:
Ref processFunction(Function* func) {
Wasm2JSBuilder sub(flags);
- return sub.processFunction(nullptr, func);
+ return sub.processStandaloneFunction(&tempAllocationModule, func);
}
void emitFunction(Ref func) {