[Webkit-unassigned] [Bug 33849] New: const decl shadowing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 19 10:58:13 PST 2010


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

           Summary: const decl shadowing
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: antonm at chromium.org
                CC: ggaren at apple.com, oliver at apple.com,
                    dglazkov at chromium.org, ager at chromium.org


Created an attachment (id=46928)
 --> (https://bugs.webkit.org/attachment.cgi?id=46928)
Small test to see how var and const declared properties are shadowed in various
browsers

http://trac.webkit.org/changeset/47062 added a layout test to check that
shadowing of const declared properties on global object is impossible.  However
most of other browsers behave differently---attached HTML shows that FF, Opera
and Safari allow to shadow both var and const declared properties (IE8 didn't
output anything)---and only Safari forbids shadowing of const properties.

Semantics of shadowing/constness is not quite obvious, so it might be easily
not a bug though.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list