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 upSpecify web reality RegExp character class invalid control escape semantics #863
Comments
added a commit
to littledan/ecma262
that referenced
this issue
Apr 4, 2017
littledan
referenced this issue
Apr 4, 2017
Merged
Normative: Specify RegExp malformed character class behavior #864
bterlson
referenced this issue
May 15, 2017
Closed
[RegExp] Difference with other engines in handling of invalid \c #2973
added a commit
to littledan/ecma262
that referenced
this issue
Jun 13, 2017
bterlson
closed this
in
#864
Jun 13, 2017
added a commit
that referenced
this issue
Jun 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
littledan commentedApr 4, 2017
Sadness: @schuay noted in this V8 bug that some invalid character classes are permitted in browsers. The 3/4 majority semantics (minus ChakraCore) seems to be to treat
/[\c%]/as/[\\c%]/, and to treat/[\c]/as[\\c], where currently, neither are supported in the grammar. (They are included in ChakraCore's grammar, but with different semantics.) See the bug for more details. Should we standardize the majority semantics?