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
[email protected]
https://mail.mozilla.org/listinfo/es-discuss


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to