diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 7b0df6827a7..65d3858709e 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -599,10 +599,6 @@ struct FixInvokeFunctionNamesWalker : public PostWalkerbase) return; - if (curr->base != curr->name) { - Fatal() << "Import name and function name do not match: '" << curr->base << "' '" << curr->name << "'"; - } - assert(importRenames.count(curr->name) == 0); importRenames[curr->name] = newname; // Either rename or remove the existing import