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

Unified Diff: corelib/src/implementation/collections.dart

Issue 9372094: Added special case code for translating null element to work around a frog bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | tests/corelib/src/CollectionToStringTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/collections.dart
diff --git a/corelib/src/implementation/collections.dart b/corelib/src/implementation/collections.dart
index 2bed4aa7daea028eb749ce42cdeb4a0311b89249..162f6422b197d77e7ee3e51f4b72f07982e33945 100644
--- a/corelib/src/implementation/collections.dart
+++ b/corelib/src/implementation/collections.dart
@@ -133,7 +133,7 @@ class Collections {
Maps._emitMap(o, result, visiting);
}
} else { // o is neither a collection nor a map
- result.add(o);
+ result.add(o == null ? 'null' : o); // TODO(jjb): remove the null check
}
}
« no previous file with comments | « no previous file | tests/corelib/src/CollectionToStringTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698