Skip to content

Commit ce6f39e

Browse files
committed
Move token scan to inside if
1 parent 306de4d commit ce6f39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2850,8 +2850,8 @@ namespace ts {
28502850
if (sourceFile.languageVariant === LanguageVariant.JSX) {
28512851
let isArrowFunctionInJsx = lookAhead(() => {
28522852
let third = nextToken();
2853-
let fourth = nextToken();
28542853
if (third === SyntaxKind.ExtendsKeyword) {
2854+
let fourth = nextToken();
28552855
switch (fourth) {
28562856
case SyntaxKind.EqualsToken:
28572857
case SyntaxKind.GreaterThanToken:

0 commit comments

Comments
 (0)