Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: tools/dom/src/Serialization.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/KeyboardEventController.dart ('k') | tools/dom/src/_ListIterators.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/Serialization.dart
diff --git a/tools/dom/src/Serialization.dart b/tools/dom/src/Serialization.dart
index 4db5c0d285bf00e1c854cb4dc5d52908a2b64595..0d1cc82750788db119a4909b1501ea5f78b9bd26 100644
--- a/tools/dom/src/Serialization.dart
+++ b/tools/dom/src/Serialization.dart
@@ -90,15 +90,15 @@ abstract class _Serializer extends _MessageTraverser {
int id = _nextFreeRefId++;
_visited[map] = id;
- var keys = _serializeList(map.keys);
- var values = _serializeList(map.values);
+ var keys = _serializeList(map.keys.toList());
+ var values = _serializeList(map.values.toList());
// TODO(floitsch): we are losing the generic type.
return ['map', id, keys, values];
}
_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]);
}
« no previous file with comments | « tools/dom/src/KeyboardEventController.dart ('k') | tools/dom/src/_ListIterators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698