Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 88bc2e36fa9733987a2358e8ade80ffc2945aaaa
      
https://github.com/WebKit/WebKit/commit/88bc2e36fa9733987a2358e8ade80ffc2945aaaa
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-02-18 (Wed, 18 Feb 2026)

  Changed paths:
    A JSTests/stress/yarr-jit-backreference-partially-captured-subpattern.js
    M Source/JavaScriptCore/yarr/YarrJIT.cpp

  Log Message:
  -----------
  [YARR] End subpattern index must be checked with -1
https://bugs.webkit.org/show_bug.cgi?id=308112
rdar://170535154

Reviewed by Yijia Huang.

As it is demonstrated in 306841@main, FixedCount parentheses clears both
begin and end. And set begin index when it starts. And when it succeeds,
end index is filled with the right value. So, if we would like to know
whether the subpattern is active or not, we should look into end index
side instead of begin index.

We also clean up some initialization code for subpatterns and duplicate
named groups.

Test: JSTests/stress/yarr-jit-backreference-partially-captured-subpattern.js

* JSTests/stress/yarr-jit-backreference-partially-captured-subpattern.js: Added.
* Source/JavaScriptCore/yarr/YarrJIT.cpp:

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



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

Reply via email to