Re: [Gamepad] Liveness of Gamepad objects

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