Re: [w3c/gamepad] IDL array[]s no longer exist (#28)

@luser, @bzbarsky, @toji I'd like to find a solution for this and make the spec compliant with modern WebIDL.

I think everyone agrees that those types should be converted to `FrozenArray<>`s, but I'm not entirely sure there needs to be prose saying the values (or at least `Gamepad#buttons` and `Gamepad#hapticActuators`) should also be cached. Gecko seems to be the only one caching the values, and populating those values in Gecko, WebKit and Blink looks fairly inexpensive.

Using FrozenArrays is a somewhat-breaking change though, as the arrays being returned so far are not frozen (however, I haven't seen code that requires changing those values around). The alternative would be returning an `object` and then specifying everything in prose, I guess.

-- 
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/28#issuecomment-315362879

Received on Friday, 14 July 2017 13:44:25 UTC