Avoid syntax error in yield assignments (fixes #1054)
This commit is contained in:
@@ -1234,9 +1234,7 @@ function OutputStream(options) {
|
||||
}
|
||||
|
||||
isYield = (self.right.operator == "yield" || self.right.operator === "yield*");
|
||||
isYield && output.print("(");
|
||||
output.print(op);
|
||||
isYield && output.print(")");
|
||||
|
||||
if ((op == "<" || op == "<<")
|
||||
&& self.right instanceof AST_UnaryPrefix
|
||||
|
||||
Reference in New Issue
Block a user