fix type annotation property on arrow function params returnType to typeAnnotation
This commit is contained in:
parent
65e1646dbf
commit
854e892cda
2
acorn.js
2
acorn.js
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user