Fix parens in +(+x). Close #475
This commit is contained in:
@@ -455,7 +455,8 @@ function OutputStream(options) {
|
|||||||
|
|
||||||
PARENS(AST_Unary, function(output){
|
PARENS(AST_Unary, function(output){
|
||||||
var p = output.parent();
|
var p = output.parent();
|
||||||
return p instanceof AST_PropAccess && p.expression === this;
|
return (p instanceof AST_PropAccess && p.expression === this)
|
||||||
|
|| (p instanceof AST_Unary && p.operator == "+" && this.operator == "+");
|
||||||
});
|
});
|
||||||
|
|
||||||
PARENS(AST_Seq, function(output){
|
PARENS(AST_Seq, function(output){
|
||||||
|
|||||||
Reference in New Issue
Block a user