Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

HTML integration #9

@ljharb

Description

@ljharb

A PR will be needed, ideally before stage 2.7 (although this would otherwise be a concern to be addressed within 2.7) to ensure that DOM exceptions are considered to be Errors.

Some potential implementation strategies:

  1. add the ErrorData internal slot to DOM exceptions, and accept the implicit observable change when used with Object.prototype.toString and a deleted Symbol.toStringTag
  2. add a new host hook, that the web can use to indicate which of its errors are Errors
  3. optionally, check the host hook in Object.prototype.toString so that host errors are indistinguishable from true Error subclasses

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