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

Unified Diff: tool/input_sdk/lib/core/uri.dart

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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: tool/input_sdk/lib/core/uri.dart
diff --git a/tool/input_sdk/lib/core/uri.dart b/tool/input_sdk/lib/core/uri.dart
index fdd495233ddf3cdf98b8f3355ab1af110236d58d..a6c69bb457b96053d6e49ee901febecd40338263 100644
--- a/tool/input_sdk/lib/core/uri.dart
+++ b/tool/input_sdk/lib/core/uri.dart
@@ -944,9 +944,10 @@ class Uri {
: path;
_pathSegments = new UnmodifiableListView(
pathToSplit == "" ? const<String>[]
- : pathToSplit.split("/")
- .map(Uri.decodeComponent)
- .toList(growable: false));
+ : new List<String>.from(
+ pathToSplit.split("/")
+ .map(Uri.decodeComponent),
+ growable: false));
}
return _pathSegments;
}

Powered by Google App Engine
This is Rietveld 408576698