Re: RTCSessionDescription and RTCIceCandidate

On 9/15/15 2:56 PM, Harald Alvestrand wrote:
> Is this because the dictionary definers have defined that {} (empty
> dictionary) should be treated the same as a missing argument, and want
> to make the possibly-missing argument explicit?

 From https://heycam.github.io/webidl/#idl-operations

"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. Such 
arguments are always considered to have a default value of an empty 
dictionary, unless otherwise specified."

Or "don't ask". Not something anyone sane would invent without staring 
down some technical limitation, I hope.

.: Jan-Ivar :.

Received on Tuesday, 15 September 2015 19:16:00 UTC