ToPropertyDescriptor with an undefined getter or setter

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


  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.

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