[whatwg/webidl] add [[ErrorData]] slot to DOMExceptions (PR #1421)

This is an attempt to fix https://github.com/tc39/proposal-is-error/issues/9.

The intention is to make DOM Exceptions true subclasses of `Error`.

It's possible this PR needs additional changes to simplify/undo #732 - I'm happy to make whatever changes are appropriate.

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno: …
   * Node.js: …
   * webidl2.js: …
   * widlparser: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

<!-- (See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.) -->

This is part of a stage 2 TC39 proposal for `Error.isError`. When it advances to stage 2.7, I'll file the appropriate implementation bugs.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/webidl/1421.html" title="Last updated on Jul 18, 2024, 4:14 AM UTC (538452c)">Preview</a> | <a href="https://whatpr.org/webidl/1421/1ce5eb5...538452c.html" title="Last updated on Jul 18, 2024, 4:14 AM UTC (538452c)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1421

-- Commit Summary --

  * add [[ErrorData]] slot to DOMExceptions

-- File Changes --

    M index.bs (1)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1421.patch
https://github.com/whatwg/webidl/pull/1421.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1421
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1421@github.com>

Received on Thursday, 18 July 2024 04:14:38 UTC