Brendan Eich wrote: > * No rationale responding to the thread containing this message: > > https://mail.mozilla.org/pipermail/es4-discuss/2007-September/001114.html > > that questions the wisdom of getPrototypeOf. The other rationales are > helpful, the lack of one responding to this public thread questioning > essentially the same design element is a lack -- what do you think?
The motivation for these methods is to allow Ajax libraries and the Caja runtime to harden the environment. Such a library can use and them remove these methods, disallowing access by guest code. > * Did you consider prototype's Object.extend method: > > Object.extend = function(destination, source) { > for (var property in source) > destination[property] = source[property]; > return destination; > }; Yes we did. _______________________________________________ Es4-discuss mailing list Es4-discuss@mozilla.org https://mail.mozilla.org/listinfo/es4-discuss