Skip to content

Commit

Permalink
Tiny simplification in the parser code (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored and IvanGoncharov committed Mar 24, 2019
1 parent 0d2c01d commit 0b5e955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/parser.js
Expand Up @@ -1502,8 +1502,8 @@ function expectKeyword(lexer: Lexer<*>, value: string): Token {

throw syntaxError(
lexer.source,
lexer.token.start,
`Expected "${value}", found ${getTokenDesc(lexer.token)}`,
token.start,
`Expected "${value}", found ${getTokenDesc(token)}`,
);
}

Expand Down

0 comments on commit 0b5e955

Please sign in to comment.