babel-types: add Binary alias to AssignmentExpression definition (fixes T6887)
This commit is contained in:
@@ -66,7 +66,7 @@ export function Binary(node: Object, parent: Object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (t.isBinary(parent)) {
|
||||
if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {
|
||||
let parentOp = parent.operator;
|
||||
let parentPos = PRECEDENCE[parentOp];
|
||||
|
||||
@@ -212,7 +212,7 @@ export function ConditionalExpression(node: Object, parent: Object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (t.isBinary(parent)) {
|
||||
if (t.isBinary(parent) && !t.isAssignmentExpression(parent)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user