- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Nov 2020 20:35:49 +0000
- To: public-webrtc-logs@w3.org
It turns out WebIDL does not allow this, since the types are not [distinguishable](https://heycam.github.io/webidl/#dfn-distinguishable). From mozilla's webidl compiler: ``` 0:05.05 WebIDL.WebIDLError: error: Flat member types of a union should be distinguishable, DOMException (Wrapper) is not distinguishable from OverconstrainedError (Wrapper), /Users/Jan/moz/mozilla-central/dom/webidl/Navigator.webidl line 248:8 0:05.05 typedef (DOMException or OverconstrainedError) MediaStream2Error; ``` `MediaStreamError` is used solely in the legacy callback APIs, so having it be an `object` doesn't seem like a big issue. Closing. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/484#issuecomment-722629135 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 5 November 2020 20:35:51 UTC