fix type annotation property on arrow function params returnType to typeAnnotation

This commit is contained in:
Sebastian McKenzie 2015-02-28 22:33:03 +11:00
parent 65e1646dbf
commit 854e892cda
2 changed files with 2 additions and 2 deletions

View File

@ -3365,7 +3365,7 @@
var listItem = exprList[i];
if (listItem.type === "TypeCastExpression") {
var expr = listItem.expression;
expr.returnType = listItem.typeAnnotation;
expr.typeAnnotation = listItem.typeAnnotation;
exprList[i] = expr;
}
}

View File

@ -2,7 +2,7 @@
"name": "acorn-babel",
"description": "Acorn fork used by babel",
"main": "acorn_csp.js",
"version": "0.11.1-35",
"version": "0.11.1-36",
"maintainers": [
{
"name": "Marijn Haverbeke",