archives

« Bugzilla Issues Index

#3568 — 6.1.7.3 Invariants of the Essential Internal Methods, [[GetOwnProperty]]: 3rd and 4th invariants are equivalent


6.1.7.3 Invariants of the Essential Internal Methods
[[GetOwnProperty]]

The two following invariants are strictly equivalent: "If A then not B":

"If a property is described as a data property and it may return different values over time, then either or both of the Desc.[[Writable]] and Desc.[[Configurable]] attributes must be true even if no mechanism to change the value is exposed via the other internal methods."

and: "If B then not A":

"If a property P is described as a data property with Desc.[[Value]] equal to v and Desc.[[Writable]] and Desc.[[Configurable]] are both false, then the SameValue must be returned for the Desc.[[Value]] attribute of the property on all future calls to [[GetOwnProperty]] ( P )."

I suggest to keep the second one, whose formulation I find more precise.


fixed in rev32 editor's draft.

Kept the second form, and moved the first form into a note stating that it is consequence of the second form.


fixed in rev32 draft