You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Unicode escape in identifier name (lexer) is supported in #1102 , but this issue seems to be a bug across both the lexer and parser - the keyword should be evaluated in parser based on where it appears instead of the lexer. I will create a separate PR for it since it will be big and it is more suitable to be addressed the bug separately.
The Unicode escape in identifier name (lexer) is supported in #1102 , but this issue seems to be a bug across both the lexer and parser - the keyword should be evaluated in parser based on where it appears instead of the lexer. I will create a separate PR for it since it will be big and it is more suitable to be addressed the bug separately.
Describe the bug
Boa throws syntax error when using some reserved words as variable names, function arguments, and object property.
To Reproduce
Another related bug:
After the Unicode escapes in identifier name are supported, the following code should also work properly:
Expected behavior
As mentioned above.
Additional context
The Identifier syntax defined in ECMAscript is not properly implemented.
Reference: https://tc39.es/ecma262/#sec-identifiers
The text was updated successfully, but these errors were encountered: