[Webkit-unassigned] [Bug 223533] Variable incorrectly hoisted when it has the same name as a parameter
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 13 23:51:00 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=223533
--- Comment #3 from Ross Kirsling <ross.kirsling at sony.com> ---
This is actually even weirder than the above example suggests, as it's not actually the value of the var that's being printed -- the following *still* prints `undefined`:
```
async function test(foo) { print(foo); var foo = 42; }
test('blah');
```
--
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/20221214/407b2abc/attachment.htm>
More information about the webkit-unassigned
mailing list