remove MemberExpression from binding identifier collection
This commit is contained in:
@@ -10,8 +10,6 @@ exports.check = function (node) {
|
||||
var visitor = {
|
||||
enter: function (node, parent, scope, state) {
|
||||
if (t.isAssignmentExpression(node) || t.isUpdateExpression(node)) {
|
||||
if (t.isMemberExpression(node.left || node.argument)) return;
|
||||
|
||||
var ids = t.getBindingIdentifiers(node);
|
||||
|
||||
for (var name in ids) {
|
||||
|
||||
@@ -614,7 +614,6 @@ t.getBindingIdentifiers.keys = {
|
||||
VariableDeclarator: ["id"],
|
||||
FunctionDeclaration: ["id"],
|
||||
ClassDeclaration: ["id"],
|
||||
MemberExpression: ["object"],
|
||||
SpreadElement: ["argument"],
|
||||
RestElement: ["argument"],
|
||||
UpdateExpression: ["argument"],
|
||||
|
||||
Reference in New Issue
Block a user