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

Unified Diff: runtime/lib/byte_array.dart

Issue 9320028: Wrote functions to convert collections and maps to strings and invoked (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/lib/byte_array.dart
===================================================================
--- runtime/lib/byte_array.dart (revision 3809)
+++ runtime/lib/byte_array.dart (working copy)
@@ -141,6 +141,10 @@
return this[length - 1];
}
+ String toString() {
+ return Collections.collectionToString(this);
+ }
+
// Implementation
int _length() native "ByteArray_getLength";

Powered by Google App Engine
This is Rietveld 408576698