Xavier, you can create an iframe and then steal/copy the Object.prototype.hasOwnProperty from that new environment.
Diego On Sat, Aug 27, 2011 at 1:00 AM, xavierm02 <[email protected]> wrote: > How to restore Object.prototype.hasOwnProperty if it has been overwritten? > Let's say you have a dumbass doing this: > Object.prototype.hasOwnProperty = 1; > This will never happen, but let's assumje it did. > How can you restore the default value? > I tried several things but none worked... > deleting How to restore Object.prototype.hasOwnProperty if it has been > overwritten? > Let's say you have a dumbass doing this: > Object.prototype.hasOwnProperty = 1; > How can you restore the default value? > I tried several things but none worked... > delete Object.prototype.hasOwnProperty;// true > Object.prototype.hasOwnProperty;// undefined > > delete Object.prototype;// false > So I just don't know how to do it... > And how come they protect the prototype but not its properties ? > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
