Bug 254007

Summary: [JSC] Add ClassSetCharacter syntax tests for RegExp V flag and fix issues found
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Michael Saboff 2023-03-15 21:15:09 PDT
The Spec for RegExp V flag reserves character pairs and certain syntax characters as not allowed in the ClassSetCharacter production.  Tests are needed to check for these syntax rules as both set operands and class string disjunctions (\q{...}).

ClassSetCharacter ::
	[lookahead ∉ ClassSetReservedDoublePunctuator] SourceCharacter but not ClassSetSyntaxCharacter
        ...

ClassSetReservedDoublePunctuator :: one of
	&& !! ## $$ %% ** ++ ,, .. :: ;; << == >> ?? @@ ^^ `` ~~

ClassSetSyntaxCharacter :: one of
	( ) [ ] { } / - \ |
Comment 1 Radar WebKit Bug Importer 2023-03-15 21:15:29 PDT
<rdar://problem/106789711>
Comment 2 Michael Saboff 2023-03-15 21:28:09 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11593
Comment 3 EWS 2023-03-16 07:37:39 PDT
Committed 261746@main (1fe6b1dc37f1): <https://commits.webkit.org/261746@main>

Reviewed commits have been landed. Closing PR #11593 and removing active labels.