Chromium Code Reviews| Index: runtime/lib/array.dart |
| diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart |
| index a24e404db02a382ea323e9119bec2f350d28cdcc..e12344868e3061b4695906c00458629a8fb01cbd 100644 |
| --- a/runtime/lib/array.dart |
| +++ b/runtime/lib/array.dart |
| @@ -117,7 +117,9 @@ class _List<E> implements List<E> { |
| } |
| void forEach(f(E element)) { |
| - IterableMixinWorkaround.forEach(this, f); |
| + for (int i = 0; i < length; i++) { |
|
kasperl
2014/08/28 13:45:18
Does it make a difference if you cache length in a
Anders Johnsen
2014/08/28 14:20:12
Done.
|
| + f(this[i]); |
| + } |
| } |
| String join([String separator = ""]) { |