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

Unified Diff: runtime/lib/expando_patch.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: runtime/lib/expando_patch.dart
diff --git a/runtime/lib/expando_patch.dart b/runtime/lib/expando_patch.dart
index 75369a260abf04f9856a63ac5ae2f06a85b2cfe6..bb3e32490f9826c3693c3a6894beba720ba01f5d 100644
--- a/runtime/lib/expando_patch.dart
+++ b/runtime/lib/expando_patch.dart
@@ -21,7 +21,7 @@ patch class Expando<T> {
}
}
if (doCompact) {
- _data = _data.where((e) => (e != null)).toList();
+ _data = _data.where((e) => (e != null)).toList(growable: true);
}
return result;
}
@@ -49,7 +49,7 @@ patch class Expando<T> {
_data.add(new _WeakProperty(object, value));
}
if (doCompact) {
- _data = _data.where((e) => (e != null)).toList();
+ _data = _data.where((e) => (e != null)).toList(growable: true);
}
}

Powered by Google App Engine
This is Rietveld 408576698