Index: pkg/front_end/lib/src/fasta/source/diet_listener.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
index e8029aa91db1749ae57949200bc678bc54359afd..62b002134564a657ee80421b229f1720995a51ce 100644 |
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart |
@@ -560,7 +560,7 @@ class DietListener extends StackListener { |
bool get isTargetingDartVm { |
// TODO(ahe): Find a more reliable way to check if this is the Dart VM. |
- return coreTypes.getCoreLibrary("dart:_js_helper") == null; |
+ return !coreTypes.containsLibrary("dart:_js_helper"); |
} |
@override |