generator: remove parans around ConditionalExpression

This commit is contained in:
Sebastian McKenzie
2014-11-01 23:08:50 +11:00
parent 99f2864048
commit 2409b017db

View File

@@ -22,13 +22,11 @@ exports.UpdateExpression = function (node, print) {
};
exports.ConditionalExpression = function (node, print) {
this.push("(");
print(node.test);
this.push(" ? ");
print(node.consequent);
this.push(" : ");
print(node.alternate);
this.push(")");
};
exports.NewExpression = function (node, print) {