[Webkit-unassigned] [Bug 213371] A possible bug of String.prototype.replace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 30 09:03:22 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=213371
Alexey Shvayka <shvaikalesh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |shvaikalesh at gmail.com
Resolution|--- |WONTFIX
--- Comment #2 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to NWU_NISL from comment #0)
> ### Description:
> For String.prototype.replace (searchValue, replaceValue ), if the second
> parameter is a function, the matched string should be replaced with the
> return value of this function. When executing this test case, "$" should
> also be replaced with the return value of the function(undefined), but
> javascriptCore replaced it with [object Object]. I think this may be a bug
> of javascriptCore.
"$" is substituted with the value of `globalThis.$`, which is exposed to JSC shell (we use it in JSTests/stress), but not to the web.
If provided test case is executed in Chrome DevTools, "$" is also substituted with `document.querySelector` helper.
--
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/20200630/089f614f/attachment.htm>
More information about the webkit-unassigned
mailing list