w3c / gamepad

Gamepad
https://w3c.github.io/gamepad/
Other
139 stars 49 forks source link

GamepadHapticActuator pulse should be annotated [NewObject] #59

Open daoshengmu opened 7 years ago

daoshengmu commented 7 years ago

In the spec of [pulse](https://w3c.github.io/gamepad/extensions.html#dom-gamepadhapticactuator-pulse()), it didn't describe how the detailed of this interface to be implemented. We should make implementers know we can't throw Promise without Throws, and it needs to return a NewObject always to avoid making users confusing to get a nullptr.

marcoscaceres commented 2 years ago

Throws is gecko specific, but marking as NewObject seems fine. However, this still not part of the main spec.