Skip to content

Commit

Permalink
turn ArrowFunctionExpression into a FunctionExpression - fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmck committed Feb 27, 2015
1 parent f31b01d commit 6f50f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions eslint/babel-eslint-parser/acorn-to-esprima.js
Expand Up @@ -53,6 +53,8 @@ var astTransformVisitor = {
} else if (t.isClassProperty(node)) {
// eslint doesn't like these
this.remove();
} else if (t.isArrowFunctionExpression(node)) {
node.type = "FunctionExpression";
}
}
};
2 changes: 1 addition & 1 deletion eslint/babel-eslint-parser/package.json
@@ -1,6 +1,6 @@
{
"name": "babel-eslint",
"version": "1.0.4",
"version": "1.0.5",
"description": "",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 6f50f36

Please sign in to comment.