generator: fix NewExpression arguments
This commit is contained in:
parent
6838062279
commit
72d924d85b
@ -30,10 +30,9 @@ exports.ConditionalExpression = function (node, print) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.NewExpression = function (node, print) {
|
exports.NewExpression = function (node, print) {
|
||||||
this.push("new (");
|
this.push("new ");
|
||||||
print(node.callee);
|
print(node.callee);
|
||||||
this.push(")");
|
if (node.arguments.length) {
|
||||||
if (node.arguments) {
|
|
||||||
this.push("(");
|
this.push("(");
|
||||||
this.printJoin(print, node.arguments, ", ");
|
this.printJoin(print, node.arguments, ", ");
|
||||||
this.push(")");
|
this.push(")");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user