| Index: sdk/lib/collection/hash_set.dart
|
| diff --git a/sdk/lib/collection/hash_set.dart b/sdk/lib/collection/hash_set.dart
|
| index 12e615e02b140a16e5c5eafbfef4295de217375d..7de1f478ce3dd1a75853ab09237aa5365a61540a 100644
|
| --- a/sdk/lib/collection/hash_set.dart
|
| +++ b/sdk/lib/collection/hash_set.dart
|
| @@ -57,7 +57,8 @@ abstract class _HashSetBase<E> extends IterableBase<E> implements Set<E> {
|
| }
|
|
|
| List<E> toList({bool growable: true}) {
|
| - List<E> result = new List<E>()..length = this.length;
|
| + List<E> result = growable ? (new List<E>()..length = this.length)
|
| + : new List<E>(this.length);
|
| int i = 0;
|
| for (E element in this) result[i++] = element;
|
| return result;
|
|
|