Updates:
Status: WontFix
Comment #8 on issue 19248 by [email protected]: Ensure that const
declarations work correctly when attempting to shadow a property on the
global object
http://code.google.com/p/chromium/issues/detail?id=19248
I strongly suspect Safari is wrong here. The attached html checks shadowing
behaviour for var and const decls. FF, Chromium and Opera shadows both, IE
fails to
output anything, and only Safari shadows var decl, and doesn't shadow const
decl. So
at the very least Safari behaves differently from the rest of the crowd.
Note: the bug Safari fixed with this change doesn't show up in Chromium, so
chances
are Safari folks could be able both to fix the bug and keep shadowing
semantics same
to other browsers.
Probably I should file a bug against Safari, what do you think?
Attachments:
test-const-var.html 761 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs