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

Unified Diff: runtime/lib/typeddata.dart

Issue 14468004: Fix missing concurrency check in [].forEach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/typeddata.dart
diff --git a/runtime/lib/typeddata.dart b/runtime/lib/typeddata.dart
index 75cd3624843055d63b5d7b0e72816ba01d9b1512..c2805676c7aa5f74d06a100552704a894a778de9 100644
--- a/runtime/lib/typeddata.dart
+++ b/runtime/lib/typeddata.dart
@@ -461,8 +461,8 @@ abstract class _TypedListBase {
"Cannot remove from a non-extendable array");
}
Søren Gjesse 2013/04/24 09:00:49 Is it documented in toList that the default is a g
Lasse Reichstein Nielsen 2013/04/24 09:30:57 Yes. It's defined the same way on Iterable, so the
- List toList() {
- return new List.from(this);
+ List toList({bool growable: true}) {
+ return new List.from(this, growable: growable);
}
Set toSet() {

Powered by Google App Engine
This is Rietveld 408576698