Re: [webrtc-pc] Can RTCStatsReport use a union type instead of object?

This idea requires keeping an union type that is updated every time a new stats type gets added. That union type would have to live in the webrtc-stats document, or maintenance would be unmanageable.

But it doesn't work anyway, because all these types are dictionaries, and two dictionaries aren't distinguishable enough to be included in the same union type:

https://heycam.github.io/webidl/#dfn-distinguishable




-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1905#issuecomment-398650123 using your GitHub account

Received on Wednesday, 20 June 2018 07:21:39 UTC