Skip to content

Commit

Permalink
Add true and false as reserved words (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkine authored Oct 18, 2021
1 parent 01ed0ce commit 6aba006
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/isIdentifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const RESERVED_WORDS = new Set([
"else",
"export",
"extends",
"false",
"finally",
"for",
"function",
Expand All @@ -34,6 +35,7 @@ const RESERVED_WORDS = new Set([
"switch",
"this",
"throw",
"true",
"try",
"typeof",
"var",
Expand Down

0 comments on commit 6aba006

Please # to comment.