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

