Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upB.1.4 AtomEscape production syntax incomplete #378
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Indeed, same issue. |
bterlson
closed this
Feb 17, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hashseed commentedFeb 10, 2016
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.