ToPropertyDescriptor with an undefined getter or setter

Dmitry A. Soshnikov dmitry.soshnikov at gmail.com
Sun Aug 29 13:13:07 PDT 2010


  On 30.08.2010 0:05, Dmitry A. Soshnikov wrote:
>  On 29.08.2010 23:56, Oliver Hunt wrote:
>> What is the expected behaviour of ToPropertyDescriptor if I provide 
>> undefined values for the get or set properties?  eg.
>> var o={};
>> Object.defineProperty(o, "foo", {get: undefined});
>> Object.getOwnPropertyDescriptor(o, "foo"); // ???
>>
> An accesor descriptor with [[Get]] and [[Set]] undefined.
>

Because of step 8 (and in particular 8.b) of 8.10.5 and default values 
of Table 7. http://bit.ly/da1k5e

> Dmitry.
>
>> --Oliver
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>



More information about the es-discuss mailing list