make spread properties computed - fixes babel/babel-eslint#16
This commit is contained in:
parent
9a77a7dbaa
commit
71a5782ab7
@ -29,7 +29,7 @@ var astTransformVisitor = {
|
||||
if (t.isSpreadProperty(node)) {
|
||||
node.type = "Property";
|
||||
node.kind = "init";
|
||||
node.computed = false;
|
||||
node.computed = true;
|
||||
node.key = node.value = node.argument;
|
||||
delete node.argument;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user