| Index: test/generated_sdk/lib/core/list.dart
|
| diff --git a/test/generated_sdk/lib/core/list.dart b/test/generated_sdk/lib/core/list.dart
|
| index fcd83709770a47b7c750c8d38548dfee7177d3cf..c693ba1f05b9632e9d6b44b49b0ec18b97847370 100644
|
| --- a/test/generated_sdk/lib/core/list.dart
|
| +++ b/test/generated_sdk/lib/core/list.dart
|
| @@ -124,7 +124,7 @@ abstract class List<E> implements Iterable<E>, EfficientLength {
|
| */
|
| factory List.from(Iterable elements, { bool growable: true }) {
|
| List<E> list = new List<E>();
|
| - for (E e in elements) {
|
| + for (var e in elements) {
|
| list.add(e);
|
| }
|
| if (growable) return list;
|
| @@ -276,11 +276,9 @@ abstract class List<E> implements Iterable<E>, EfficientLength {
|
| String toString() => ListBase.listToString(this);
|
|
|
| List<E> toList({ bool growable: true }) {
|
| - if (growable) {
|
| - return new JSArray<E>.markGrowable(JS('', '#.slice()', this));
|
| - } else {
|
| - return new JSArray<E>.markFixed(JS('', '#.slice()', this));
|
| - }
|
| + // TODO(vsm): Enforce growable / non-growable.
|
| + // See: https://github.com/dart-lang/dev_compiler/issues/175
|
| + return JS('', 'dart.setType(#.slice(), core.List\$(#))', this, E);
|
| }
|
|
|
| Set<E> toSet() => new Set<E>.from(this);
|
|
|