According to the named capture proposed spec changes, when the string "$<" is seen in the replacement string but the search RegExp doesn't contain any named groups, "$<" should be copied to the output. See step 1 for the "$<" row in Table 1of the proposal (https://tc39.github.io/proposal-regexp-named-groups/#table-45). Currently we are copying "$<<".
<rdar://problem/34399809>
Created attachment 320582 [details] Patch
Comment on attachment 320582 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=320582&action=review LGTM > Source/JavaScriptCore/ChangeLog:8 > + The copy and advance indecies where off by one and needed a little fine tuning. typo:/indecies/indices/
Committed r221949: <http://trac.webkit.org/changeset/221949>