Fix TypeScript parsers missing token check (#9571) (#9572)

* Fix TypeScript parsers missing token check (#9571)

* fix unit test
This commit is contained in:
Barthélémy Ledoux
2019-02-24 06:34:38 -06:00
committed by Nicolò Ribaudo
parent 0b01b5217b
commit 9f3457797f
3 changed files with 77 additions and 9 deletions

View File

@@ -86,7 +86,8 @@ export default (superClass: Class<Parser>): Class<Parser> =>
!this.match(tt.parenR) &&
!this.match(tt.colon) &&
!this.match(tt.eq) &&
!this.match(tt.question)
!this.match(tt.question) &&
!this.match(tt.bang)
);
}