- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 27 Aug 2024 17:48:05 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 August 2024 00:48:09 UTC
> How would you suggest I modify step 4? By adding [[ErrorData]] to the argument list of MakeBasicObject, if the inclusive inherited interfaces of _interface_ includes DOMException. > but by making them proper Errors, then serialization of DOMExceptions should be automatic now? No, it's not automatic, and it should not be. The relevant step is step 17 of https://html.spec.whatwg.org/#structuredserializeinternal. Thankfully, it's guarded by "and value is not a [platform object](https://webidl.spec.whatwg.org/#dfn-platform-object)", which means DOMException will properly go down to step 19 instead. If we took the generic step 17 path for DOMException, we would lose the name information, and would look at the public message property instead of the internal [message](https://webidl.spec.whatwg.org/#domexception-message). -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/1421#issuecomment-2313871316 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/1421/c2313871316@github.com>
Received on Wednesday, 28 August 2024 00:48:09 UTC