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

Unified Diff: lib/src/codegen/js_module_item_order.dart

Issue 1310943005: fix `dynamic` type literal (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_module_item_order.dart
diff --git a/lib/src/codegen/js_module_item_order.dart b/lib/src/codegen/js_module_item_order.dart
index 378f6cfef0020e7f67073adf1651fb3c23ae412d..ae3ec003b6774bb226b9117658b69a6fdafe1734 100644
--- a/lib/src/codegen/js_module_item_order.dart
+++ b/lib/src/codegen/js_module_item_order.dart
@@ -180,6 +180,9 @@ class ModuleItemLoadOrder {
bool libraryIsLoaded(LibraryElement library) {
assert(library != _currentLibrary);
+ // DynamicElementImpl has no library.
+ if (library == null) return true;
+
// The SDK is a special case: we optimize the order to prevent laziness.
if (_isDartUri(library)) {
// SDK is loaded before non-SDK libraries
« no previous file with comments | « no previous file | test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698