@@ -709,6 +709,8 @@ function OutputStream(options) {
|
||||
// (x++)[y]
|
||||
// (typeof x).y
|
||||
if (p instanceof AST_PropAccess) return p.expression === this;
|
||||
// (~x)`foo`
|
||||
if (p instanceof AST_Template) return p.tag === this;
|
||||
}
|
||||
PARENS(AST_Await, needs_parens_unary);
|
||||
PARENS(AST_Unary, needs_parens_unary);
|
||||
@@ -782,6 +784,8 @@ function OutputStream(options) {
|
||||
if (p instanceof AST_Class) return true;
|
||||
// (foo && bar)["prop"], (foo && bar).prop
|
||||
if (p instanceof AST_PropAccess) return p.expression === this;
|
||||
// (foo && bar)``
|
||||
if (p instanceof AST_Template) return p.tag === this;
|
||||
// typeof (foo && bar)
|
||||
if (p instanceof AST_Unary) return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user