W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 15 Apr 2014 17:27:55 -0400
Message-ID: <534DA45B.70901@mit.edu>
To: Rick Waldron <waldron.rick@gmail.com>, Adam Klein <adamk@chromium.org>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, Toon Verwaest <verwaest@chromium.org>, Adam Barth <abarth@chromium.org>
On 4/15/14 5:20 PM, Rick Waldron wrote:
> On Tue, Apr 15, 2014 at 5:04 PM, Adam Klein <adamk@chromium.org
> <mailto:adamk@chromium.org>> wrote:
>     Consider a case where a WeakMap is being used, instead of a Map, to
>     store private state related to an object. Given that expando
>     properties disappear when a WindowProxy is attached to a different
>     Window after navigation,
>
> Is it still the same object, or a newly created object?

It's the same WindowProxy, but a new Window.

-Boris
Received on Tuesday, 15 April 2014 21:28:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:21 UTC