defineProperty(__proto__, "shenanigans")

Brandon Benvie brandon at brandonbenvie.com
Tue Nov 6 13:44:53 PST 2012


The correct behavior is what you observed. If a property is non-writable on
a prototype then CanPut (and the refactored SetP) then writing should fail.
defineProperty uses DefineOwnProperty which explicitly only operates on the
object itself and thus doesn't care about the prototype.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121106/69b727f6/attachment.html>


More information about the es-discuss mailing list