Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keywords with Unicode escapes should throw syntax errors #2771

Closed
Razican opened this issue Mar 31, 2023 · 1 comment · Fixed by #2931
Closed

Keywords with Unicode escapes should throw syntax errors #2771

Razican opened this issue Mar 31, 2023 · 1 comment · Fixed by #2931
Assignees
Labels
bug Something isn't working E-Medium Medium difficulty problem parser Issues surrounding the parser

Comments

@Razican
Copy link
Member

Razican commented Mar 31, 2023

Describe the bug
Currently, if we use a keyword with an Unicode escape, it will just work, and interpret it as the keyword itself. This is a follow-up from #1117.

To Reproduce
The following JavaScript code reproduces the issue:

let x = f\u{61}lse;

Expected behavior
This should throw a syntax error. Instead, it just assigns the false boolean value to the x variable.

@Razican Razican added bug Something isn't working parser Issues surrounding the parser labels Mar 31, 2023
@jasonwilliams jasonwilliams added the E-Medium Medium difficulty problem label Apr 12, 2023
@veera-sivarajan
Copy link
Contributor

Hi, I'd like to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working E-Medium Medium difficulty problem parser Issues surrounding the parser
Projects
None yet
3 participants