Merge pull request #2379 from bradencanderson/defaults_correct_remap
RHS of AssignmentPattern can be a reference to a bound variable
This commit is contained in:
commit
37172857b4
@ -119,9 +119,9 @@ export function isReferenced(node: Object, parent: Object): boolean {
|
||||
return parent.right === node;
|
||||
|
||||
// no: [NODE = foo] = [];
|
||||
// no: [foo = NODE] = [];
|
||||
// yes: [foo = NODE] = [];
|
||||
case "AssignmentPattern":
|
||||
return false;
|
||||
return parent.right === node;
|
||||
|
||||
// no: [NODE] = [];
|
||||
// no: ({ NODE }) = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user