-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
B.1.4 AtomEscape production syntax incomplete #378
Comments
Indeed, same issue. |
This was referenced Feb 24, 2022
This was referenced Dec 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In http://tc39.github.io/ecma262/#sec-regular-expressions-patterns
AtomEscape[U] ::
[+U] DecimalEscape
[+U] CharacterEscape[U]
[+U] CharacterClassEscape
[~U] DecimalEscape only if the integer value
[~U] CharacterClassEscape
[~U] CharacterEscape
It should be
AtomEscape[U] ::
[+U] DecimalEscape
[+U] CharacterEscape[U]
[+U] CharacterClassEscape
[~U] DecimalEscape but only if the integer value of DecimalEscape is <= NCapturingParens
[~U] CharacterClassEscape
[~U] CharacterEscape
The condition for ~U is necessary so that we can fall back to CharacterEscape, which may interpret the digits as legacy octal escape.
The text was updated successfully, but these errors were encountered: