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

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

Issue 2110323003: Support serialization of loadLibrary (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 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: pkg/compiler/lib/src/dart2js.dart
diff --git a/pkg/compiler/lib/src/dart2js.dart b/pkg/compiler/lib/src/dart2js.dart
index b82ad535387d5ae5c7e9a48398246c9700e7f365..99a577481ec8db86be9d4ffe5861b4ba7cfba08a 100644
--- a/pkg/compiler/lib/src/dart2js.dart
+++ b/pkg/compiler/lib/src/dart2js.dart
@@ -471,7 +471,8 @@ Future<api.CompilationResult> compile(List<String> argv) {
api.Diagnostic.INFO);
}
if (resolveOnly) {
- if (resolutionInputs.contains(resolutionOutput)) {
+ if (resolutionInputs != null &&
+ resolutionInputs.contains(resolutionOutput)) {
Johnni Winther 2016/06/30 11:09:33 Same problem fixed more thoroughly in https://code
helpAndFail("Resolution input '${resolutionOutput}' can't be used as "
"resolution output. Use the '--out' option to specify another "
"resolution output.");

Powered by Google App Engine
This is Rietveld 408576698