Index: pkg/compiler/lib/src/inferrer/list_tracer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/list_tracer.dart b/pkg/compiler/lib/src/inferrer/list_tracer.dart |
index 30631310d3a50f2e47aff7824563c0b8d0759281..8de3a84cac7991d5166de76d6f53720f7bb9b853 100644 |
--- a/pkg/compiler/lib/src/inferrer/list_tracer.dart |
+++ b/pkg/compiler/lib/src/inferrer/list_tracer.dart |
@@ -165,7 +165,8 @@ class ListTracerVisitor extends TracerVisitor { |
visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) { |
super.visitStaticCallSiteTypeInformation(info); |
Element called = info.calledElement; |
- if (compiler.backend.isForeign(compiler.commonElements, called) && |
+ if (compiler.backend |
+ .isForeign(inferrer.closedWorld.commonElements, called) && |
called.name == JavaScriptBackend.JS) { |
bailout('Used in JS ${info.call}'); |
} |