Bug 254007 - [JSC] Add ClassSetCharacter syntax tests for RegExp V flag and fix issues found
Summary: [JSC] Add ClassSetCharacter syntax tests for RegExp V flag and fix issues found
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-15 21:15 PDT by Michael Saboff
Modified: 2023-03-16 07:37 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.