Re: What is mandatory in RTCSessionDescription

2015-05-19 21:57 GMT+02:00 Martin Thomson <martin.thomson@gmail.com>:
> [Constructor (optional RTCSessionDescriptionInit descriptionInitDict)]
> interface RTCSessionDescription {
>                 attribute RTCSdpType? type;
>                 attribute DOMString?  sdp;
>     serializer = {attribute};
> };
>
> Why is type nullable here?  Because the constructor argument is optional.
>
> Why is the constructor argument optional?
>
> I'd have thought that we'd want to mark RTCSessionDescriptionInit.type
> as required, and remove this optionality here. Am I missing something?

Agreed.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>

Received on Tuesday, 19 May 2015 21:48:35 UTC