Index: lib/src/js_ast/printer.dart |
diff --git a/lib/src/js_ast/printer.dart b/lib/src/js_ast/printer.dart |
index 87a104f364f3e774831d49589422dd795d7bf6bb..29bd7797c0335356a5e2fab89a39b3b627d5acb0 100644 |
--- a/lib/src/js_ast/printer.dart |
+++ b/lib/src/js_ast/printer.dart |
@@ -1406,7 +1406,9 @@ class VarCollector extends BaseVisitor { |
nested = true; |
if (fun.params != null) { |
for (var param in fun.params) { |
- params.add(param.name); |
+ // TODO(jmesserly): add ES6 support. Currently not needed because |
+ // dart2js does not emit ES6 rest param or destructuring. |
+ params.add((param as Identifier).name); |
} |
} |
fun.body.accept(this); |