Bug 21701 - Constants can be deleted
Summary: Constants can be deleted
Status: RESOLVED DUPLICATE of bug 14611
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: All All
: P5 Minor
Assignee: Nobody
URL: javascript:const foo = 1; delete foo;...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 18:25 PDT by Eli Grey (:sephr)
Modified: 2009-08-17 09:31 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: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 ***