Index: pkg/compiler/lib/src/enqueue.dart |
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart |
index ebbef36b1c274fbd11fd75ff30c385e0561d199e..26e148e313afd9fa9a72f52b14dd3a394ef9324e 100644 |
--- a/pkg/compiler/lib/src/enqueue.dart |
+++ b/pkg/compiler/lib/src/enqueue.dart |
@@ -836,7 +836,7 @@ class CodegenEnqueuer extends Enqueuer { |
bool internalAddToWorkList(Element element) { |
// Don't generate code for foreign elements. |
- if (element.isForeign(compiler.backend)) return false; |
+ if (compiler.backend.isForeign(element)) return false; |
// Codegen inlines field initializers. It only needs to generate |
// code for checked setters. |