Bug 21700 - Constants declared with const can be overwritten
Summary: Constants declared with const can be overwritten
Status: RESOLVED DUPLICATE of bug 14611
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P5 Minor
Assignee: Nobody
URL: javascript:const foo = 1; const foo =...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 18:17 PDT by Eli Grey (:sephr)
Modified: 2008-10-16 19:59 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eli Grey (:sephr) 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
Comment 1 Cameron Zwarich (cpst) 2008-10-16 19:59:26 PDT

*** This bug has been marked as a duplicate of 14611 ***