Skip to content

eventInitDict parameter in GamepadEvent constructor should be optional #216

@nondebug

Description

@nondebug

The GamepadEvent constructor is defined with two required parameters:

constructor(DOMString type, GamepadEventInit eventInitDict);

This differs from the signature in implementations which define the second parameter as optional (blink, Gecko, WebKit):

  constructor(DOMString type, optional GamepadEventInit eventInitDict = {}); // blink
  constructor(DOMString type, optional GamepadEventInit eventInitDict = {});  // Gecko
  constructor([AtomString] DOMString type, optional GamepadEventInit eventInitDict);  // WebKit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions