Bug 21701
| Summary: | Constants can be deleted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Eli Grey (:sephr) <bugmail> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Minor | ||
| Priority: | P5 | ||
| Version: | 525.x (Safari 3.1) | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | javascript:const foo = 1; delete foo; alert(typeof foo) | ||
Eli Grey (:sephr)
Constants can be deleted using the delete keyword.
const foo = 1; delete foo; typeof foo == 'undefined'
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
I cannot reproduce this in the latest nightly build. Which version did you test with?
Eli Grey (:sephr)
(In reply to comment #1)
> I cannot reproduce this in the latest nightly build. Which version did you
> test with?
>
I was using 525.21 (forgot to change version).
Eli Grey (:sephr)
*** This bug has been marked as a duplicate of bug 14611 ***