[whatwg/webidl] Update DOMException language to reflect standardized stack accessor (PR #1578)

Since DOMException objects have [[ErrorData]], the Error.prototype.stack accessor from the Error Stack Accessor proposal naturally applies to them. Update the language to reflect that stack is now a specified accessor property rather than a nonstandard property that implementations "should" expose.

See https://github.com/tc39/proposal-error-stack-accessor/issues/9 and https://github.com/tc39/proposal-error-stack-accessor/issues/8

<!--
Thank you for contributing to the Web IDL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.

When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.

If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->

- [x] At least two implementers are interested (and none opposed):
   * …
   * …
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * https://github.com/web-platform-tests/wpt/pull/58397
- [ ] [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: …
- [ ] 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.) -->
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Update DOMException language to reflect standardized stack accessor

-- File Changes --

    M index.bs (8)

-- Patch Links --

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

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

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

Received on Tuesday, 10 March 2026 14:58:43 UTC