| Index: lib/src/js/printer.dart
|
| diff --git a/lib/src/js/printer.dart b/lib/src/js/printer.dart
|
| index 594916d4db26f62be3769a570921245402f08e89..a1a68c450d2b1cf04024373b9b1f8f27091dc4cf 100644
|
| --- a/lib/src/js/printer.dart
|
| +++ b/lib/src/js/printer.dart
|
| @@ -828,17 +828,21 @@ class Printer implements NodeVisitor {
|
| out("(");
|
| }
|
| localNamer.enterScope(fun);
|
| - out("(");
|
| - if (fun.params != null) {
|
| + if (fun.params.length == 1) {
|
| + visitNestedExpression(fun.params.single, PRIMARY,
|
| + newInForInit: false, newAtStatementBegin: false);
|
| + } else {
|
| + out("(");
|
| visitCommaSeparated(fun.params, PRIMARY,
|
| newInForInit: false, newAtStatementBegin: false);
|
| + out(")");
|
| }
|
| - out(")");
|
| spaceOut();
|
| out("=>");
|
| if (fun.body is Expression) {
|
| spaceOut();
|
| - fun.body.accept(this);
|
| + visitNestedExpression(fun.body, ASSIGNMENT,
|
| + newInForInit: false, newAtStatementBegin: false);
|
| } else {
|
| blockBody(fun.body, needsSeparation: false, needsNewline: false);
|
| }
|
|
|