Skip to content

web platform integration #8

Closed
Closed

Description

@bakkot

DOMExceptions are defined in WebIDL, including this sentence:

Additionally, if an implementation gives native Error objects special powers or nonstandard properties (such as a stack property), it should also expose those on DOMException objects.

Presumably this would need to be reworded. Engines are not currently consistent about this; in Chrome it apparently depends on how it's thrown.

Also, structured clone handwaves cloning the .stack as follows:

User agents should attach a serialized representation of any interesting accompanying data which are not yet specified, notably the stack property, to serialized.

This too would presumably need to be reworded.

Also there would need to be WPT tests for presence of .stack as a string on DOMExceptions, both manually created and thrown, as well as for cloning of stacks with structured clone.

Activity

  1. ljharb commented on Feb 19, 2025

    @ljharb
    Member

    Thanks for filing this; I'll ensure this is covered in the pre-stage-2.7 PR.

  2. added a commit that references this issue on May 29, 2026
  3. ljharb commented on Jun 17, 2026

    @ljharb
    Member

    All merged.

  4. added a commit that references this issue on Oct 16, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions