| Index: pkg/serialization/lib/src/serialization_helpers.dart
|
| diff --git a/pkg/serialization/lib/src/serialization_helpers.dart b/pkg/serialization/lib/src/serialization_helpers.dart
|
| index 9568c24dee7db223fe32fb46df89a1c06c8d0da3..6ce5f7642f2405cf0000802385ead4a6ead3017b 100644
|
| --- a/pkg/serialization/lib/src/serialization_helpers.dart
|
| +++ b/pkg/serialization/lib/src/serialization_helpers.dart
|
| @@ -20,10 +20,10 @@ doNothing(x) => x;
|
| // TODO(alanknight): Remove once issue 5342 is resolved.
|
| Iterable append(Iterable a, Iterable b) {
|
| if (a == null) {
|
| - return (b == null) ? [] : new List.from(b);
|
| + return (b == null) ? [] : new List.from(b, growable: true);
|
| }
|
| - if (b == null) return new List.from(a);
|
| - var result = new List.from(a);
|
| + if (b == null) return new List.from(a, growable: true);
|
| + var result = new List.from(a, growable: true);
|
| result.addAll(b);
|
| return result;
|
| }
|
| @@ -132,7 +132,7 @@ values(x) {
|
|
|
| mapValues(x, f) {
|
| if (x is Set) return x.map(f).toSet();
|
| - if (x is Iterable) return x.map(f).toList();
|
| + if (x is Iterable) return x.map(f).toList(growable: true);
|
| if (x is Map) return new ListLikeIterable(x).map(f);
|
| throw new ArgumentError("Invalid argument");
|
| }
|
|
|