Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Validate lone arrow function parameter
Previously, the identifier parsing logic returned early for a lone arrow function parameter in order to avoid incorrectly extending the environment record in which the associated arrow function was defined. This unintentionally circumvented logic which enforced restrictions on identifier names. Refactor the parsing logic to enforce the restriction in all cases, but only alter the environment record when the identifier is not a lone arrow function parameter.
- Loading branch information
1 parent
691dbdc
commit 38285cd
Showing
2 changed files
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters