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

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

Issue 717103004: Revert "Emit warning on import of dart:mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 893445bae1aa17f71bd731ed314e35f97f35f2ee..0f01f9c86572926652e2c1bf78a4637cc4c23fd5 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(LoadedLibraries loadedLibraries) {
- if (!loadedLibraries.containsLibrary(Compiler.DART_CORE)) {
+ Future onLibrariesLoaded(Map<Uri, LibraryElement> loadedLibraries) {
+ if (!loadedLibraries.containsKey(Compiler.DART_CORE)) {
return new Future.value();
}
- assert(loadedLibraries.containsLibrary(Compiler.DART_CORE));
- assert(loadedLibraries.containsLibrary(DART_INTERCEPTORS));
- assert(loadedLibraries.containsLibrary(DART_JS_HELPER));
+ assert(loadedLibraries.containsKey(Compiler.DART_CORE));
+ assert(loadedLibraries.containsKey(DART_INTERCEPTORS));
+ assert(loadedLibraries.containsKey(DART_JS_HELPER));
if (jsInvocationMirrorClass != null) {
jsInvocationMirrorClass.ensureResolved(compiler);
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/dart_backend.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698