[Webkit-unassigned] [Bug 219275] block scope + const + hoisted function using the const = ReferenceError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 27 09:35:44 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=219275

--- Comment #2 from Jakub G (dailymotion) <jakub.g.opensource at gmail.com> ---
Just a small update: it seems to work fine in Safari in strict mode, but not in sloppy mode.

https://jg-testpage.netlify.app/safari/const-inside-if.html
https://jg-testpage.netlify.app/safari/const-inside-if-strict.html

Chrome 50+: OK both strict/sloppy mode
Firefox 50+: OK both strict/sloppy mode
Safari: OK strict mode, KO in sloppy mode

-- 
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/20201127/396d1ecd/attachment-0001.htm>


More information about the webkit-unassigned mailing list