Fix issues with flow-types and async function (#95)
the typeAnnotation was not correctly resolved in async functions
This commit is contained in:
committed by
Henry Zhu
parent
2cfae60b15
commit
db0705bc51
@@ -946,7 +946,7 @@ pp.parseExprListItem = function (allowEmpty, refShorthandDefaultPos) {
|
||||
} else if (this.match(tt.ellipsis)) {
|
||||
elt = this.parseSpread(refShorthandDefaultPos);
|
||||
} else {
|
||||
elt = this.parseMaybeAssign(false, refShorthandDefaultPos);
|
||||
elt = this.parseMaybeAssign(false, refShorthandDefaultPos, this.parseParenItem);
|
||||
}
|
||||
return elt;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user