Skip to content

Commit

Permalink
Ensure invalid escaped reserved word errors are thrown. [closes stand…
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton authored and dnalborczyk committed Aug 13, 2018
1 parent 09aea22 commit 6d24ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/acorn/parser/error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function init() {
ILLEGAL_RETURN_STATEMENT,
INVALID_ESCAPED_RESERVED_WORD,
INVALID_OR_UNEXPECTED_TOKEN,
INVALID_ESCAPED_RESERVED_WORD,
UNEXPECTED_EOS,
UNEXPECTED_EVAL_OR_ARGUMENTS,
UNEXPECTED_IDENTIFIER,
Expand All @@ -40,6 +41,7 @@ function init() {
[ILLEGAL_RETURN_STATEMENT]: true,
[INVALID_ESCAPED_RESERVED_WORD]: true,
[INVALID_OR_UNEXPECTED_TOKEN]: true,
[INVALID_ESCAPED_RESERVED_WORD]: true,
[UNEXPECTED_EOS]: true,
[UNEXPECTED_EVAL_OR_ARGUMENTS]: true,
[UNEXPECTED_IDENTIFIER]: true,
Expand Down

0 comments on commit 6d24ac0

Please sign in to comment.