diff --git a/lib/6to5/transformation/transformers/es6/constants.js b/lib/6to5/transformation/transformers/es6/constants.js index f559a2cccc..a58cd16256 100644 --- a/lib/6to5/transformation/transformers/es6/constants.js +++ b/lib/6to5/transformation/transformers/es6/constants.js @@ -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) { diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index d65f5811f0..99d8a9aa70 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -614,7 +614,6 @@ t.getBindingIdentifiers.keys = { VariableDeclarator: ["id"], FunctionDeclaration: ["id"], ClassDeclaration: ["id"], - MemberExpression: ["object"], SpreadElement: ["argument"], RestElement: ["argument"], UpdateExpression: ["argument"],