Re: [w3c/gamepad] Need to spec liveness of Gamepad objects (#8)

> If Gamepad is a live object then the array returned by getGamepads() should only need to change when gamepads are added or removed from the list.

The objects in the arrays may be the same, but each time `getGamepads()` is called it has to return a new array. This is how `sequence<T>` conversion is defined, see "Let A be a new Array" at step 2 of "An IDL sequence value S of type sequence<T> is converted to an ECMAScript Array object as follows" in https://heycam.github.io/webidl/#es-sequence.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/issues/8#issuecomment-546106419

Received on Thursday, 24 October 2019 21:15:00 UTC