Object.prototype.get & bye bye Object.defineProperty

Andrea Giammarchi andrea.giammarchi at gmail.com
Wed Nov 28 18:40:12 PST 2012

This was not true at some point, but now it seems to be the case in every


Object.prototype.get = function(){};

and any further attempt to use Object.defineProperty(obj, key, {value:123})
will fail because defineProperty checks inherited get property, or set, and
these cannot be used together with value ...

Is this a bug or kinda a joke ?

Scary stuff, IMHO, thanks for clarifications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121128/fa63ddca/attachment.html>

More information about the es-discuss mailing list