- From: Guy Bedford <notifications@github.com>
- Date: Thu, 15 Jun 2023 23:13:59 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 June 2023 06:14:04 UTC
Good points. We probably should support both `%AbstractModuleSource%` and `%AbstractModuleSource.prototype%` chains here yes. Perhaps that would mean two new attributes then? ``` [Exposed=*, Serializable, InstrinsicParent="%Error%", IntrinsicPrototypeParent="%Error.prototype%"] interface DOMException { /*...*/ }; [LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet), IntrinsicParent="%AbstractModuleSource%", IntrinsicPrototypeParent="%AbstractModuleSource.prototype%"] interface Module { /*...*/ }; ``` It's quite a lot of machinery for a single case though that only possible simplifies DOMException. Have there been other cases of this sort of thing? While DOMException is an exception, we do have a similar thing for `namespaces` in the console spec at https://console.spec.whatwg.org/#console-namespace where it overrides the default prototype from the https://webidl.spec.whatwg.org/#namespace-object steps effectively with a comment. Perhaps we could use a similar approach. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1322#issuecomment-1594161471 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1322/1594161471@github.com>
Received on Friday, 16 June 2023 06:14:04 UTC