[Webkit-unassigned] [Bug 102276] Object.getOwnPropertyDescriptor() on a non-strict function exposes strict "caller" property
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 14 03:17:54 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=102276
Alexey Shvayka <shvaikalesh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |shvaikalesh at gmail.com
Resolution|--- |CONFIGURATION CHANGED
--- Comment #2 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to Adam Klein from comment #0)
> Though this is underspecified in the spec (it says that only [[Get]] should
> throw when asked for caller), it seems likely that [[GetOwnProperty]] should
> do the same, and that's what both Chrome and Firefox do.
As of r277026, [[Get]] is aligned with [[GetOwnProperty]] not to return strict callers.
In modern browsers both test cases (adjusted for Firefox having "caller" on Function.prototype) evaluate as `false`.
I am adding test coverage for [[GetOwnProperty]] as part of https://bugs.webkit.org/show_bug.cgi?id=225277.
--
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/20210514/b7134921/attachment.htm>
More information about the webkit-unassigned
mailing list