Chromium Code Reviews| Index: runtime/lib/array.dart |
| diff --git a/runtime/lib/array.dart b/runtime/lib/array.dart |
| index c86ff8fcc4fd3e075d34af46d989bd1a087bad4c..185a1e78cbc3c43a9ceaf7eea30e2ce0c7ac762f 100644 |
| --- a/runtime/lib/array.dart |
| +++ b/runtime/lib/array.dart |
| @@ -13,9 +13,7 @@ class _List<E> implements List<E> { |
| void operator []=(int index, E value) native "List_setIndexed"; |
| - String toString() { |
| - return IterableMixinWorkaround.toStringIterable(this,'[' , ']'); |
| - } |
| + String toString() => ListBase.listToString(this); |
|
floitsch
2014/05/23 16:09:58
runtime/lib files preferred to avoid the "=>" synt
Lasse Reichstein Nielsen
2014/05/23 16:50:01
I have no problem using brackets instead.
|
| int get length native "List_getLength"; |
| @@ -442,9 +440,7 @@ class _ImmutableList<E> implements List<E> { |
| throw UnmodifiableListError.change(); |
| } |
| - String toString() { |
| - return IterableMixinWorkaround.toStringIterable(this, '[', ']'); |
| - } |
| + String toString() => ListBase.listToString(this); |
| int indexOf(Object element, [int start = 0]) { |
| return Lists.indexOf(this, element, start, this.length); |