[webrtc-pc] Argument in RTCPeerConnection.setConfiguration should be optional (#2410)

dontcallmedom has just created a new issue for https://github.com/w3c/webrtc-pc:

== Argument in RTCPeerConnection.setConfiguration should be optional ==
Per [WebIDL](https://heycam.github.io/webidl/#dfn-optional-argument-default-value):
> If the type of an argument is a dictionary type or a union type that has a dictionary type as one of its flattened member types, and that dictionary type and its ancestors have no required members, and the argument is either the final argument or is followed only by optional arguments, then the argument must be specified as optional and have a default value provided.

Right now, Chrome throws on no argument provided, so this would require implementation change (could not test in Safari)

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2410 using your GitHub account

Received on Wednesday, 11 December 2019 20:49:37 UTC