Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 588183002: Emit warning on import of dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0f01f9c86572926652e2c1bf78a4637cc4c23fd5..893445bae1aa17f71bd731ed314e35f97f35f2ee 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1763,14 +1763,14 @@ class JavaScriptBackend extends Backend {
});
}
- Future onLibrariesLoaded(Map<Uri, LibraryElement> loadedLibraries) {
- if (!loadedLibraries.containsKey(Compiler.DART_CORE)) {
+ Future onLibrariesLoaded(LoadedLibraries loadedLibraries) {
+ if (!loadedLibraries.containsLibrary(Compiler.DART_CORE)) {
return new Future.value();
}
- assert(loadedLibraries.containsKey(Compiler.DART_CORE));
- assert(loadedLibraries.containsKey(DART_INTERCEPTORS));
- assert(loadedLibraries.containsKey(DART_JS_HELPER));
+ assert(loadedLibraries.containsLibrary(Compiler.DART_CORE));
+ assert(loadedLibraries.containsLibrary(DART_INTERCEPTORS));
+ assert(loadedLibraries.containsLibrary(DART_JS_HELPER));
if (jsInvocationMirrorClass != null) {
jsInvocationMirrorClass.ensureResolved(compiler);

Powered by Google App Engine
This is Rietveld 408576698