| Index: tool/input_sdk/lib/core/list.dart
|
| diff --git a/tool/input_sdk/lib/core/list.dart b/tool/input_sdk/lib/core/list.dart
|
| index 20dce08cca7921258acd443037173e658c8924e4..a771976a91565c3526cacd367e46327437b05021 100644
|
| --- a/tool/input_sdk/lib/core/list.dart
|
| +++ b/tool/input_sdk/lib/core/list.dart
|
| @@ -243,11 +243,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);
|
|
|