| Index: sdk/lib/html/src/Serialization.dart
|
| diff --git a/sdk/lib/html/src/Serialization.dart b/sdk/lib/html/src/Serialization.dart
|
| index 7ffaaafcc950bfecfffbd01f8988a1fe0215f162..83be057688327a047fa42e6824a3acb64343ea2c 100644
|
| --- a/sdk/lib/html/src/Serialization.dart
|
| +++ b/sdk/lib/html/src/Serialization.dart
|
| @@ -79,7 +79,7 @@ class _Copier extends _MessageTraverser {
|
| int len = list.length;
|
|
|
| // TODO(floitsch): we loose the generic type of the List.
|
| - copy = new List(len);
|
| + copy = new List.fixedLength(len);
|
| _visited[list] = copy;
|
| for (int i = 0; i < len; i++) {
|
| copy[i] = _dispatch(list[i]);
|
| @@ -133,7 +133,7 @@ class _Serializer extends _MessageTraverser {
|
|
|
| _serializeList(List list) {
|
| int len = list.length;
|
| - var result = new List(len);
|
| + var result = new List.fixedLength(len);
|
| for (int i = 0; i < len; i++) {
|
| result[i] = _dispatch(list[i]);
|
| }
|
|
|