Re: [mediacapture-main] Can IDL typedef for MediaStreamError be (DOMException or OverconstrainedError)? (#484)

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