Skip to content

Commit 0b5e955

Browse files
CitoIvanGoncharov
authored andcommitted
Tiny simplification in the parser code (#1801)
1 parent 0d2c01d commit 0b5e955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/language/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,8 +1502,8 @@ function expectKeyword(lexer: Lexer<*>, value: string): Token {
15021502

15031503
throw syntaxError(
15041504
lexer.source,
1505-
lexer.token.start,
1506-
`Expected "${value}", found ${getTokenDesc(lexer.token)}`,
1505+
token.start,
1506+
`Expected "${value}", found ${getTokenDesc(token)}`,
15071507
);
15081508
}
15091509

0 commit comments

Comments
 (0)