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

Unified Diff: sdk/lib/internal/iterable.dart

Issue 601193002: Fix bad default value for SubListIterable.toList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/internal/iterable.dart
diff --git a/sdk/lib/internal/iterable.dart b/sdk/lib/internal/iterable.dart
index 78cebced560803c219dfc51a76f37b55fde7eab8..58301a7ca1cdfb1441491e738b545e073fe7f241 100644
--- a/sdk/lib/internal/iterable.dart
+++ b/sdk/lib/internal/iterable.dart
@@ -294,7 +294,7 @@ class SubListIterable<E> extends ListIterable<E> {
}
}
- List<E> toList({bool growable: false}) {
+ List<E> toList({bool growable: true}) {
int start = _start;
int end = _iterable.length;
if (_endOrLength != null && _endOrLength < end) end = _endOrLength;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698