[Webkit-unassigned] [Bug 205785] New: String.prototype.replace() incorrectly handles named references on RegExp w/o named groups
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 5 21:52:51 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205785
Bug ID: 205785
Summary: String.prototype.replace() incorrectly handles named
references on RegExp w/o named 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
Test case:
"ab".replace(/a/, "$<c>$<d>")
Expected:
"$<c>$<d>b"
Actual:
"$<$<d>b"
ECMA262: https://tc39.es/ecma262/#sec-getsubstitution (step 11)
Test262: https://test262.report/browse/built-ins/RegExp/named-groups/string-replace-nocaptures.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/8f34c808/attachment.htm>
More information about the webkit-unassigned
mailing list