[Webkit-unassigned] [Bug 258683] Function defined within a `with` statement, but called from outside it - cannot access variables exposed by `with`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 24 13:59:13 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=258683
Alexey Shvayka <ashvayka at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ashvayka at apple.com
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Alexey Shvayka <ashvayka at apple.com> ---
Thank you for reporting!
This bug arises because block-level function declarations in global code, which are subject to currently unimplemented legacy Annex B hoisting, always receive top-level scope instead of lexical one.
https://bugs.webkit.org/show_bug.cgi?id=163209 implements Annex B function hoisting for global code, fixing this issue.
*** This bug has been marked as a duplicate of bug 163209 ***
--
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/20230924/29f3feac/attachment.htm>
More information about the webkit-unassigned
mailing list