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

Unified Diff: sdk/lib/isolate/mangler.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: Merge to head. 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/isolate/mangler.dart
diff --git a/sdk/lib/isolate/mangler.dart b/sdk/lib/isolate/mangler.dart
index a0e16721a4d9d0cd220681319342f05cd7555382..8b31d5a621c383d20fee3eb95bc4697372eb7f80 100644
--- a/sdk/lib/isolate/mangler.dart
+++ b/sdk/lib/isolate/mangler.dart
@@ -44,7 +44,7 @@ class _IsolateEncoder {
for (int i = 0; i < data.length; i++) {
var mangled = encode(data[i]);
if (mangled != data[i] && !hasBeenDuplicated) {
- result = new List.fixedLength(data.length);
+ result = new List(data.length);
for (int j = 0; j < i; j++) {
result[j] = data[j];
}

Powered by Google App Engine
This is Rietveld 408576698