Bug 21701

Summary: Constants can be deleted
Product: WebKit Reporter: Eli Grey (:sephr) <bugmail>
Component: JavaScriptCoreAssignee: 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)
Reported 2008-10-16 18:25:43 PDT
Constants can be deleted using the delete keyword. const foo = 1; delete foo; typeof foo == 'undefined'
Attachments
Mark Rowe (bdash)
Comment 1 2008-10-16 19:10:13 PDT
I cannot reproduce this in the latest nightly build. Which version did you test with?
Eli Grey (:sephr)
Comment 2 2008-10-16 19:33:00 PDT
(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)
Comment 3 2009-08-17 09:31:25 PDT
*** This bug has been marked as a duplicate of bug 14611 ***
Note You need to log in before you can comment on or make changes to this bug.