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

Unified Diff: runtime/lib/expando_patch.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (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
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/expando_patch.dart
diff --git a/runtime/lib/expando_patch.dart b/runtime/lib/expando_patch.dart
index bb3e32490f9826c3693c3a6894beba720ba01f5d..75369a260abf04f9856a63ac5ae2f06a85b2cfe6 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(growable: true);
+ _data = _data.where((e) => (e != null)).toList();
}
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(growable: true);
+ _data = _data.where((e) => (e != null)).toList();
}
}
« no previous file with comments | « runtime/lib/byte_array.dart ('k') | runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698