diff --git a/acorn-to-esprima.js b/acorn-to-esprima.js index 4c121085..11e96512 100644 --- a/acorn-to-esprima.js +++ b/acorn-to-esprima.js @@ -183,11 +183,8 @@ var astTransformVisitor = { }, exit: function (node) { /* parent */ if (this.isSpreadProperty()) { - node.type = "Property"; - node.kind = "init"; - node.computed = true; + node.type = "SpreadProperty"; node.key = node.value = node.argument; - delete node.argument; } if (this.isRestElement()) {