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

Unified Diff: runtime/lib/string_base.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: runtime/lib/string_base.dart
diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
index bb39e4ee64622afc0931f512777dd33f9aeba987..83cbb91b40d2ea3ffbc6205d6b14808c5fada105 100644
--- a/runtime/lib/string_base.dart
+++ b/runtime/lib/string_base.dart
@@ -347,7 +347,7 @@ class _StringBase {
*/
static String _interpolate(List values) {
int numValues = values.length;
- var stringList = new List.fixedLength(numValues);
+ var stringList = new _ObjectArray(numValues);
floitsch 2013/02/26 13:54:19 new List(numValues) doesn't work?
Lasse Reichstein Nielsen 2013/02/26 15:26:00 It didn't at some point, probably before I changed
for (int i = 0; i < numValues; i++) {
stringList[i] = values[i].toString();
}

Powered by Google App Engine
This is Rietveld 408576698