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

Re: [Gamepad] Liveness of Gamepad objects

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 29 Apr 2014 12:01:22 -0400
Message-ID: <535FCCD2.6080902@mit.edu>
To: public-webapps@w3.org
On 4/29/14, 11:32 AM, Anne van Kesteren wrote:
> I think the main problem with making a Gamepad live is that the
> lifetime of the object has to be lifetime of the associated global.
> Otherwise GC can be observed through expandos.

For what it's worth, the way Gecko implements this is by setting up that 
lifetime guarantee only when an expando is added to the object (or some 
other things, like use as a WeakMap key, happen).  Until then we allow 
it to be GCed.

Received on Tuesday, 29 April 2014 16:01:53 UTC

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