Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 70ecdc2bacc59f8e20a14b893beb185a97203106..4fe167b96275b649ed37a6cc245324627620a2f4 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -642,6 +642,7 @@ class JavaScriptBackend extends Backend { |
} |
FunctionElement resolveExternalFunction(FunctionElement element) { |
+ if (isForeign(element)) return element; |
return patchResolverTask.measure(() { |
return patchResolverTask.resolveExternalFunction(element); |
}); |