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

Unified Diff: utils/kernel-service/kernel-service.dart

Issue 2974683003: Fix remaining failures from earlier CL (that switched kernel-service and 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
« no previous file with comments | « tests/compiler/dart2js/dill_loader_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/kernel-service/kernel-service.dart
diff --git a/utils/kernel-service/kernel-service.dart b/utils/kernel-service/kernel-service.dart
index 129fc7650633eeee03a801e8e45a65d36371b2c4..cea8f86fbebf17a60ded5898dcdb164f2eb60bed 100644
--- a/utils/kernel-service/kernel-service.dart
+++ b/utils/kernel-service/kernel-service.dart
@@ -79,6 +79,8 @@ Future<CompilationResult> _parseScriptInFileSystem(
// We serialize the program excluding platform.dill because the VM has these
// sources built-in. Everything loaded as a summary in [kernelForProgram] is
// marked `external`, so we can use that bit to decide what to excluce.
+ // TODO(sigmund): remove the following line (Issue #30111)
+ program.libraries.forEach((e) => e.isExternal = false);
return new CompilationResult.ok(
serializeProgram(program, filter: (lib) => !lib.isExternal));
} catch (err, stack) {
« no previous file with comments | « tests/compiler/dart2js/dill_loader_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698