[whatwg/webidl] Should `DOMException#stack` be standardized? (Issue #1186)

I was just watching the war (😉) at https://github.com/whatwg/webidl/pull/1179 and https://github.com/whatwg/webidl/pull/1179#issuecomment-1241307416 interested me. Gecko indeed has [`Error.prototype.stack` as an IDL accessor](https://searchfox.org/mozilla-central/rev/685203e4bc211073284f3c36f7f3d34f0953bb9c/dom/webidl/DOMException.webidl#49), but currently the spec says:

>Additionally, if an implementation gives native [Error](https://tc39.es/ecma262/#sec-error-objects) objects special powers or nonstandard properties (such as a stack property), it should also expose those on [DOMException](https://webidl.spec.whatwg.org/#idl-DOMException) instances.

So per the spec `stack` is nonstandard and thus it should not be an accessor. But should it be in the standard? How many rabbits are in the hole?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1186

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1186@github.com>

Received on Friday, 9 September 2022 00:45:40 UTC