defineProperty(__proto__, "shenanigans")

Brandon Benvie brandon at
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: <>

More information about the es-discuss mailing list