Index: tools/dom/templates/html/impl/impl_Node.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate |
index 4362733abc88d6069ae2b1ed90f24bc93d6cf44b..27c8e491a059e3fe322847043c8737900208a8f0 100644 |
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate |
@@ -213,7 +213,7 @@ $endif |
set nodes(Iterable<Node> value) { |
// Copy list first since we don't want liveness during iteration. |
// TODO(jacobr): there is a better way to do this. |
- List copy = new List.from(value); |
+ var copy = value.toList(); |
text = ''; |
for (Node node in copy) { |
append(node); |