Fix accidental fall-through in Flow type parsing. (#82)

When parsing a primary type, `>` would erroneously be treated like `(`.
This commit is contained in:
Max Schaefer
2016-07-28 21:12:47 +01:00
committed by Daniel Tschinder
parent 88d7e2012c
commit fd18d89d8e
3 changed files with 5 additions and 0 deletions

View File

@@ -506,6 +506,7 @@ pp.flowParsePrimaryType = function () {
return this.finishNode(node, "FunctionTypeAnnotation");
}
break;
case tt.parenL:
this.next();