summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm/wasm-emscripten.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp
index 3416c731d..29cf367d4 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -339,6 +339,9 @@ EmJsWalker findEmJsFuncsAndReturnWalker(Module& wasm) {
wasm.removeExport(exp.name);
}
+ wasm.removeExport("__start_em_js");
+ wasm.removeExport("__stop_em_js");
+
// With newer versions of emscripten/llvm we pack all EM_JS strings into
// single segment.
// We can detect this by checking for segments that contain only JS strings.