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

Unified Diff: sdk/lib/core/string.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: sdk/lib/core/string.dart
diff --git a/sdk/lib/core/string.dart b/sdk/lib/core/string.dart
index e08f291d70ff8b0c16e2542f749d7181ccc87144..d780314f2e0a9c59b775303bd0103293a7eca493 100644
--- a/sdk/lib/core/string.dart
+++ b/sdk/lib/core/string.dart
@@ -38,7 +38,7 @@ abstract class String implements Comparable<String>, Pattern {
* one half of a surrogate pair.
*/
factory String.fromCharCode(int charCode) {
- List<int> charCodes = new List<int>.fixedLength(1, fill: charCode);
+ List<int> charCodes = new List<int>.filled(1, charCode);
return new String.fromCharCodes(charCodes);
}

Powered by Google App Engine
This is Rietveld 408576698