Closed Bug 515478 Opened 16 years ago Closed 4 years ago

Change JSScope/JSScopeProperty to better reflect ES5's [[Writable]], [[Configurable]], [[Extensible]] attributes

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Waldo, Assigned: Waldo)

Details

ES5 has three object-preservation APIs: * Object.preventExtensions(O) * Object.seal(O) * Object.freeze(O) These APIs make the given object increasingly immutable, each subsuming the behavior of the previous methods. The first prevents new properties from being added. The second goes further by making all properties already on the object non-configurable (incapable of being deleted, i.e. permanent). The third goes furthest of all by making all properties unwritable (value can't be changed, i.e. readonly). Of these paradigms, SpiderMonkey supports only the third, through the false cognate JS_SealObject(cx, obj, JS_FALSE). We need implementation support for the first two capabilities as well.

JSScop, JSScopeProperty, and JS_SealObject are all gone -> bug no longer valid.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.