W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2012

Re: "var" declarations shadowing properties from Window.prototype

From: Brandon Benvie <brandon@brandonbenvie.com>
Date: Sun, 12 Aug 2012 14:57:07 -0400
Message-ID: <CAH7wrb1MetzMnwDQm8ZyskTJ5AjxWXjz37ahseWAPUQhs6a62Q@mail.gmail.com>
To: Brendan Eich <brendan@mozilla.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, public-script-coord@w3.org, es-discuss@mozilla.org
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`.
Received on Sunday, 12 August 2012 18:57:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC