Re: WindowProxy as the key in ES6 Set/Map/WeakSet/WeakMap

Le 16/04/2014 04:19, Boris Zbarsky a écrit :
> On 4/15/14 10:10 PM, Adam Barth wrote:
>> That's a slippery notion because sometimes |w| acts like the container
>> and sometimes it acts like the thing contained.
>
> Yes, this is a serious problem with the web platform. I wish we had 
> distinct objects for "the navigation context" and "the global 
> currently inside the navigation context".
As you suggested, the Document instance is a very good candidate for that.

> Again, my point is that this is a use case people will want a solution 
> for.  We should aim for there being such a solution.
Is there a reason why `document` doesn't work?

David

Received on Wednesday, 16 April 2014 08:56:35 UTC