"var" declarations shadowing properties from Window.prototype

Boris Zbarsky bzbarsky at MIT.EDU
Sun Aug 12 13:29:24 PDT 2012

On 8/12/12 3:02 PM, Brandon Benvie wrote:
> An even more interesting scenario is something like `global.__proto__ =
> Proxy.create(....)`

That's basically what the Global Scope Polluter does.  That's certainly 
how I plan to implement it in Gecko in the WebIDL bindings: 
Window.prototype.__proto__ will be a proxy which will do all the weird 
stuff the GSP has to do.


More information about the es-discuss mailing list