Bug 21700
| Summary: | Constants declared with const can be overwritten | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eli Grey (:sephr) <bugmail> |
| Component: | JavaScriptCore | Assignee: | 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)
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Cameron Zwarich (cpst)
*** This bug has been marked as a duplicate of 14611 ***