archives

« Bugzilla Issues Index

#2075 — 6.2.5.4 FromPropertyDescriptor: Incorrect precondition, partially populated Property Descriptor are valid


6.2.5.4 FromPropertyDescriptor ( Desc ):

> The following algorithm assumes that Desc is a fully populated Property Descriptor,
> such as that returned from [[GetOwnProperty]] (see 9.1.5).


This is incorrect, partially populated Property Descriptors are valid. For example when `Object.defineProperty()` is called on an Exotic Proxy Object, 9.3.6 [[DefineOwnProperty]] will be called which in turn calls 6.2.5.4 FromPropertyDescriptor.


fixed in rev20 editor's draft

Left over text from the ES5 spec, but the algorithm no longer has that dependency.


fixed in rev20 draft, Oct. 28, 2013