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

Unified Diff: site/try/src/compiler_isolate.dart

Issue 330913004: Move Compiler.libraries to LibraryLoader. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix compiler_isolate.dart Created 6 years, 6 months 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: site/try/src/compiler_isolate.dart
diff --git a/site/try/src/compiler_isolate.dart b/site/try/src/compiler_isolate.dart
index 844aaa9e4e4993d394de49fd6a0026744ed27ea5..adf42a7b18be4ec5ff98d26a1b3906f2f1fbc505 100644
--- a/site/try/src/compiler_isolate.dart
+++ b/site/try/src/compiler_isolate.dart
@@ -115,7 +115,8 @@ compile(source, SendPort replyTo) {
cachedCompiler.run(Uri.parse('$PRIVATE_SCHEME:/main.dart')).then((success) {
compilationTimer.stop();
print('Compilation took ${compilationTimer.elapsed}');
- if (cachedCompiler.libraries.containsKey('dart:html')) {
+ if (cachedCompiler.libraryLoader
+ .lookupLibrary(Uri.parse('dart:html')) != null) {
notifyDartHtml(replyTo);
}
String js = cachedCompiler.assembledCode;

Powered by Google App Engine
This is Rietveld 408576698