Skip to content

reportError(), undefined, and ErrorEvent #7853

Closed

Description

@annevk

reportError(undefined) constructs an ErrorEvent instance whose error member will return undefined, but you cannot emulate this in userland (as ErrorEventInit's error dictionary member defaults to null).

Based on discussion in web-platform-tests/wpt#33206 we have two options:

  1. Remove ErrorEventInit's error's default.
  2. Map undefined to null.
  3. Keep the specification as-is. Only reportError() gets to construct these kind of ErrorEvent instances.

cc @evilpie @domenic @mfreed7 @nayeemrmn

Activity

  1. added
    topic: events
    interop
    agenda+
    on Apr 25, 2022
  2. removed
    agenda+
    on Jun 2, 2022
  3. added a commit that references this issue on Jun 3, 2022
    dd8bbaf
  4. added a commit that references this issue on Jun 7, 2022
    0325231
  5. added
    topic: error reporting
    on Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interoptopic: error reportingtopic: events

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions