From d75bf7eda268e0ed04b9862325497810a04900c2 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Sat, 15 Aug 2015 01:01:40 -0400 Subject: [PATCH] use SpreadProperty type, revert other transforms Fixes xjamundx/eslint-plugin-standard#3 --- acorn-to-esprima.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()) {