- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 19 May 2026 11:05:24 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/pull/1578/review/4321708732@github.com>
@annevk commented on this pull request.
> +Since {{DOMException}} objects have an \[[ErrorData]] slot, the
+<code>Error.prototype.stack</code> accessor and other {{Error}}-related behaviors
+gated on \[[ErrorData]] apply to them. Additionally, if an implementation gives
+native {{Error}} objects other special powers or nonstandard properties
+(such as <code>line</code> and <code>column</code> properties), it should
+also expose those on {{DOMException}} objects.
```suggestion
Additionally, if an implementation gives native {{Error}} objects other special powers or
nonstandard properties (such as <code>line</code> and <code>column</code> properties),
it should also expose those on {{DOMException}} objects.
```
I don't think we have any business here mentioning `stack` as it's handled at a different layer now.
> @@ -15246,6 +15250,7 @@ Their [=deserialization steps=], given <var>value</var> and <var>serialized</var
<ol>
<li>Set <var>value</var>'s [=DOMException/name=] to <var>serialized</var>.\[[Name]].</li>
<li>Set <var>value</var>'s [=DOMException/message=] to <var>serialized</var>.\[[Message]].</li>
+ <li>Set <var>value</var>.\[[Stack]] to an implementation-defined value derived from <var>serialized</var>.\[[Stack]].</li>
```suggestion
<li>Set <var>value</var>.\[[Stack]] to <var>serialized</var>.\[[Stack]].</li>
```
We only have to do the implementation-defined bit once. Just like in HTML.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1578#pullrequestreview-4321708732
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/pull/1578/review/4321708732@github.com>
Received on Tuesday, 19 May 2026 18:05:28 UTC