actually make destructuring use the provided operator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user