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

Unified Diff: dart/pkg/serialization/lib/src/format.dart

Issue 12296011: Version 0.3.7.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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 | « dart/pkg/http/lib/src/byte_stream.dart ('k') | dart/runtime/lib/array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/serialization/lib/src/format.dart
===================================================================
--- dart/pkg/serialization/lib/src/format.dart (revision 18634)
+++ dart/pkg/serialization/lib/src/format.dart (working copy)
@@ -210,13 +210,13 @@
// the data is shown to the user, so we destructively modify.
if (data is List) {
ruleNumber = data.last;
- data = data.take(data.length -1);
+ data = data.take(data.length - 1).toList();
} else if (data is Map) {
ruleNumber = data.remove(RULE);
} else {
throw new SerializationException("Invalid data format");
}
- // Do not use mappedBy or other lazy operations for this. They do not play
+ // Do not use map or other lazy operations for this. They do not play
// well with a function that destructively modifies its arguments.
var newData = mapValues(data, (each) => recursivelyFixUp(each, r, result));
result[ruleNumber].add(newData);
« no previous file with comments | « dart/pkg/http/lib/src/byte_stream.dart ('k') | dart/runtime/lib/array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698