summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-emscripten.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
-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 6667ac855..78d2d25c6 100644
--- a/src/wasm/wasm-emscripten.cpp
+++ b/src/wasm/wasm-emscripten.cpp
@@ -489,6 +489,9 @@ struct EmJsWalker : public PostWalker<EmJsWalker> {
segmentOffsets(getSegmentOffsets(wasm)) { }
void visitFunction(Function* curr) {
+ if (curr->imported()) {
+ return;
+ }
if (!curr->name.startsWith(EM_JS_PREFIX.str)) {
return;
}