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

Unified Diff: pkg/compiler/lib/src/deferred_load.dart

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)
Patch Set: Created 3 years, 5 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: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index 9d14dc18233e5a4876e45b14e64d79814a68f4ba..ba2bbee6fa583551d08411d579a7869d22a05017 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -814,7 +814,7 @@ class DeferredLoadTask extends CompilerTask {
void beforeResolution(LibraryEntity mainLibrary) {
if (mainLibrary == null) return;
// TODO(johnniwinther): Support deferred load for kernel based elements.
- if (compiler.options.loadFromDill) return;
+ if (compiler.options.previewDart2) return;
_allDeferredImports[_fakeMainImport] = mainLibrary;
var lastDeferred;
// When detecting duplicate prefixes of deferred libraries there are 4

Powered by Google App Engine
This is Rietveld 408576698