[Webkit-unassigned] [Bug 205783] New: RegExp.prototype[Symbol.replace] does not support named capture groups
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 5 18:01:30 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205783
Bug ID: 205783
Summary: RegExp.prototype[Symbol.replace] does not support
named capture groups
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Minor
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shvaikalesh at gmail.com
While String.prototype.replace() works as expected with named capture groups, slow path is not implemented.
Test case:
/(?<a>.)/[Symbol.replace]("b", "$<a>")
Expected:
"b"
Actual:
"$<a>"
ECMA262:
https://tc39.es/ecma262/#sec-regexp.prototype-@@replace (step 14.j)
Test262:
https://test262.report/browse/built-ins/RegExp/named-groups/groups-object-subclass-sans.js
https://test262.report/browse/built-ins/RegExp/named-groups/groups-object-subclass.js
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200106/1f8820e0/attachment.htm>
More information about the webkit-unassigned
mailing list