Bug 21700

Summary: Constants declared with const can be overwritten
Product: WebKit Reporter: Eli Grey (:sephr) <bugmail>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Minor    
Priority: P5    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: javascript:const foo = 1; const foo = 2; alert(foo)

Eli Grey (:sephr)
Reported 2008-10-16 18:17:00 PDT
Constants declared with const can be overwritten by redeclaring the constant again using the const keyword. const foo = 1; const foo = 2; foo == 2
Attachments
Cameron Zwarich (cpst)
Comment 1 2008-10-16 19:59:26 PDT
*** This bug has been marked as a duplicate of 14611 ***
Note You need to log in before you can comment on or make changes to this bug.