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

Unified Diff: sdk/lib/async/future_impl.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/async/future_impl.dart
diff --git a/sdk/lib/async/future_impl.dart b/sdk/lib/async/future_impl.dart
index 85d73af9fa37a6476ea871bef81c4e036527e44d..c36ba4637bd3d14f4b22bf766cc96e9245028c55 100644
--- a/sdk/lib/async/future_impl.dart
+++ b/sdk/lib/async/future_impl.dart
@@ -139,7 +139,7 @@ class _FutureImpl<T> implements Future<T> {
if (remaining == 0) {
return new Future.immediate(const []);
}
- values = new List.fixedLength(remaining);
+ values = new List(remaining);
completer = new Completer<List>();
return completer.future;
}

Powered by Google App Engine
This is Rietveld 408576698