Skip to content

Commit

Permalink
Update packages/babel-parser/src/plugins/typescript/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
  • Loading branch information
nicolo-ribaudo and bradzacher committed May 4, 2022
1 parent e17270e commit fc9cb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -66,7 +66,7 @@ function assert(x: boolean): void {
}

function tsTokenCanStartExpression(token: TokenType) {
// tsc consiers binary operators as "can start expression" tokens:
// tsc considers binary operators as "can start expression" tokens:
// https://github.com/microsoft/TypeScript/blob/eca1b4/src/compiler/parser.ts#L4260-L4266
return tokenCanStartExpression(token) || tokenIsBinaryOperator(token);
}
Expand Down

0 comments on commit fc9cb52

Please sign in to comment.