Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e1cdfab158f3a6a858185c77afdf85f65d14b349
https://github.com/WebKit/WebKit/commit/e1cdfab158f3a6a858185c77afdf85f65d14b349
Author: Kai Tamkun <[email protected]>
Date: 2026-05-22 (Fri, 22 May 2026)
Changed paths:
A JSTests/stress/regexp-duplicate-named-captures-indices.js
M Source/JavaScriptCore/runtime/RegExpMatchesArray.cpp
Log Message:
-----------
YARR Interpreter Omits Named Group from `indices.groups` via Unconditional
Tracking-Slot Reset on Backtrack
https://bugs.webkit.org/show_bug.cgi?id=312688
rdar://175122294
Reviewed by Yusuke Suzuki.
This patch adjusts createRegExpMatchesArray so that if captureIndex is 0,
the named capture is set to undefined instead of being omitted from `indices`.
Thanks to Junyoung Park (@candymate) of KAIST Hacking Lab for the fix.
Test: JSTests/stress/regexp-duplicate-named-captures-indices.js
* JSTests/stress/regexp-duplicate-named-captures-indices.js: Added.
(const.m):
(z):
* Source/JavaScriptCore/runtime/RegExpMatchesArray.h:
(JSC::createRegExpMatchesArray):
Canonical link: https://commits.webkit.org/313762@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications