"var" declarations shadowing properties from Window.prototype

Brandon Benvie brandon at brandonbenvie.com
Sun Aug 12 11:57:07 PDT 2012

One incompatibility in current implementations is that
Object.getPrototypeOf(window) in Opera is Object.prototype whereas the rest
have something like Window.prototype (Window doesn't exist in Opera).

An interesting consequence of mutable __proto__ and having the global
variable record be a "regular" object is that mutating its __proto__ has
the same net effect as using `with`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120812/6b668a9f/attachment.html>

More information about the es-discuss mailing list