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

Unified Diff: runtime/lib/growable_array.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/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index 27699e2efe384a2f6f9bee51e1844c91b6acabbc..e1a858364b035e1c726ecd26c9da234cfeb3f1be 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -320,8 +320,8 @@ class _GrowableObjectArray<T> implements List<T> {
return new ListIterator<T>(this);
}
- List<T> toList() {
- return new List<T>.from(this);
+ List<T> toList({ bool growable: false }) {
+ return new List<T>.from(this, growable: growable);
}
Set<T> toSet() {

Powered by Google App Engine
This is Rietveld 408576698