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

Unified Diff: sdk/lib/html/src/Serialization.dart

Issue 11312122: Change List constructors. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload. Adapt code for List.fixedLength. Created 8 years 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/native_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698