Closed
Bug 514574
Opened 15 years ago
Closed 14 years ago
ES5 strict mode: deleting non-configurable property should throw a TypeError
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta7+ |
People
(Reporter: jimb, Assigned: jimb)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fixed-in-tracemonkey])
From ES5 Annex C:
When a delete operator occurs within strict mode code, a TypeError is thrown if the property to be deleted has the attribute { [[Configurable]]: false } (11.4.1).
Assignee | ||
Updated•14 years ago
|
Assignee: general → jim
Updated•14 years ago
|
blocking2.0: --- → beta5+
Comment 1•14 years ago
|
||
Can we get an update here?
Assignee | ||
Comment 2•14 years ago
|
||
I'm actively working on this, together with bug 537873, which needs most of the same stuff. I should have a patch today or tomorrow.
Updated•14 years ago
|
blocking2.0: beta5+ → beta6+
Assignee | ||
Comment 3•14 years ago
|
||
Woot:
js> "use strict"; delete a[0]
typein:10: TypeError: property 'a[0]' is non-configurable and cannot be deleted
js> "use strict"; delete o.x
typein:11: TypeError: property 'o.x' is non-configurable and cannot be deleted
The tests have caught a bunch of problems, but overall things look good.
Assignee | ||
Comment 4•14 years ago
|
||
Status: NEW → ASSIGNED
Whiteboard: [fixed-in-tracemonkey]
Comment 5•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•