ToPropertyDescriptor with an undefined getter or setter

Oliver Hunt oliver at apple.com
Sun Aug 29 12:56:20 PDT 2010


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"); // ???

--Oliver



More information about the es-discuss mailing list