Skip to content

Commit e3f64f0

Browse files
committed
fix test, keep flow nodes
1 parent 4f1414b commit e3f64f0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

acorn-to-esprima.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function convertTemplateType(tokens) {
170170

171171
var astTransformVisitor = {
172172
noScope: true,
173-
exit: function (node /*, parent */) {
173+
exit: function (node) { /*, parent */
174174
if (this.isSpreadProperty()) {
175175
node.type = "Property";
176176
node.kind = "init";
@@ -188,10 +188,6 @@ var astTransformVisitor = {
188188
return node.expression;
189189
}
190190

191-
if (this.isFlow()) {
192-
return this.dangerouslyRemove();
193-
}
194-
195191
// modules
196192

197193
if (this.isImportDeclaration()) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/jscs-dev/babel-jscs.git"
99
},
1010
"dependencies": {
11-
"babel-core": "^5.4.7",
11+
"babel-core": "^5.5.1",
1212
"lodash.assign": "^3.2.0"
1313
},
1414
"scripts": {

0 commit comments

Comments
 (0)