Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 062fabff20677725be26841c9191c83ff1da4c2a
      
https://github.com/WebKit/WebKit/commit/062fabff20677725be26841c9191c83ff1da4c2a
  Author: Kai Tamkun <[email protected]>
  Date:   2026-04-24 (Fri, 24 Apr 2026)

  Changed paths:
    A JSTests/stress/regexp-noncapturing-group-backreference-count.js
    M Source/JavaScriptCore/yarr/YarrParser.h

  Log Message:
  -----------
  [JSC] In unicode mode, non-capturing groups and modifiers increment the 
number of available backreferences
https://bugs.webkit.org/show_bug.cgi?id=313158
rdar://167746769

Reviewed by Yijia Huang.

This patch prevents the subpattern count from being incremented when a 
non-capturing group is encountered.

Test: JSTests/stress/regexp-noncapturing-group-backreference-count.js

* JSTests/stress/regexp-noncapturing-group-backreference-count.js: Added.
(expectInvalid):
* Source/JavaScriptCore/yarr/YarrParser.h:
(JSC::Yarr::Parser::parseParenthesesBegin):

Canonical link: https://commits.webkit.org/311974@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to