[Webkit-unassigned] [Bug 265526] Incorrect `with` statement behavior - function call breaks out of `with` 'scope'
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 23 14:01:14 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=265526
Alexey Shvayka <ashvayka at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ashvayka at apple.com
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #5 from Alexey Shvayka <ashvayka at apple.com> ---
Thank you Joe for filing this so very nicely!
The issue was fixed in https://commits.webkit.org/268553@main, please retry with the newest Safari Technology Preview.
(In reply to Joe from comment #1)
> One weird thing I noticed: If I pause the debugger, and then run the code in
> the console, it works fine. If the debugger is not paused and I run the
> code, then I get the ReferenceError that I mentioned in the previous message.
This makes sense: before https://bugs.webkit.org/show_bug.cgi?id=163209 was fixed, functions declared in global scope but inside a block (`with` statement block) were erroneously created in global scope.
*** 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/20240123/7d7a8169/attachment.htm>
More information about the webkit-unassigned
mailing list