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