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)

Description Eli Grey (:sephr) 2008-10-16 18:25:43 PDT
Constants can be deleted using the delete keyword.

const foo = 1; delete foo; typeof foo == 'undefined'
Comment 1 Mark Rowe (bdash) 2008-10-16 19:10:13 PDT
I cannot reproduce this in the latest nightly build.  Which version did you test with?
Comment 2 Eli Grey (:sephr) 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).
Comment 3 Eli Grey (:sephr) 2009-08-17 09:31:25 PDT

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