diff --git a/lib/6to5/transformation/transformers/es6-destructuring.js b/lib/6to5/transformation/transformers/es6-destructuring.js index 8b1f5ae882..910eed82a8 100644 --- a/lib/6to5/transformation/transformers/es6-destructuring.js +++ b/lib/6to5/transformation/transformers/es6-destructuring.js @@ -7,7 +7,7 @@ var buildVariableAssign = function (opts, id, init) { if (t.isMemberExpression(id)) op = "="; if (op) { - return t.expressionStatement(t.assignmentExpression("=", id, init)); + return t.expressionStatement(t.assignmentExpression(op, id, init)); } else { return t.variableDeclaration(opts.kind, [ t.variableDeclarator(id, init)