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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_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: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
index 1c1e4920dbf0511057e3a10a6c2f10b06d87cfc8..891e202b9caba4687ec91490d2caaf9a48b1f4e1 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_array.dart
@@ -254,7 +254,8 @@ class JSArray<E> implements List<E> {
String toString() => Collections.collectionToString(this);
- List<E> toList() => new List<E>.from(this);
+ List<E> toList({ bool growable: false }) =>
+ new List<E>.from(this, growable: growable);
Set<E> toSet() => new Set<E>.from(this);

Powered by Google App Engine
This is Rietveld 408576698