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 357893de2171e5576f5092f536de0141b1293f6e..b3e8ab339cf753e3f51c59875d55110455124268 100644 |
--- a/pkg/compiler/lib/src/inferrer/list_tracer.dart |
+++ b/pkg/compiler/lib/src/inferrer/list_tracer.dart |
@@ -161,7 +161,7 @@ class ListTracerVisitor extends TracerVisitor<ListTypeInformation> { |
visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) { |
super.visitStaticCallSiteTypeInformation(info); |
Element called = info.calledElement; |
- if (called.isForeign(compiler.backend) && called.name == 'JS') { |
+ if (compiler.backend.isForeign(called) && called.name == 'JS') { |
bailout('Used in JS ${info.call}'); |
} |
} |