Index: tools/dom/templates/immutable_list_mixin.darttemplate |
diff --git a/tools/dom/templates/immutable_list_mixin.darttemplate b/tools/dom/templates/immutable_list_mixin.darttemplate |
index 81c72e257f465018c0f7f6ead1762dee63d17257..0c6a533caca5944a062f890af38bc8be6b04660a 100644 |
--- a/tools/dom/templates/immutable_list_mixin.darttemplate |
+++ b/tools/dom/templates/immutable_list_mixin.darttemplate |
@@ -199,4 +199,11 @@ $endif |
Map<int, $E> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<$E> mixins. |