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; |