Fix accidental fall-through in Flow type parsing. (#82)
When parsing a primary type, `>` would erroneously be treated like `(`.
This commit is contained in:
committed by
Daniel Tschinder
parent
88d7e2012c
commit
fd18d89d8e
@@ -506,6 +506,7 @@ pp.flowParsePrimaryType = function () {
|
||||
|
||||
return this.finishNode(node, "FunctionTypeAnnotation");
|
||||
}
|
||||
break;
|
||||
|
||||
case tt.parenL:
|
||||
this.next();
|
||||
|
||||
Reference in New Issue
Block a user