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

Unified Diff: runtime/lib/byte_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/byte_array.dart
diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
index 94e076d527d23f7c87d54f3c60dc185fe5115078..ef482858b8e13812afd4e23014ba5a8eaeb6ab05 100644
--- a/runtime/lib/byte_array.dart
+++ b/runtime/lib/byte_array.dart
@@ -408,8 +408,8 @@ abstract class _ByteArrayBase {
length * this.bytesPerElement());
}
- List<int> toList() {
- return new List<int>.from(this);
+ List<int> toList({ bool growable: false }) {
+ return new List<int>.from(this, growable: growable);
}
Set<int> toSet() {

Powered by Google App Engine
This is Rietveld 408576698