What is mandatory in RTCSessionDescription

[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?

Received on Tuesday, 19 May 2015 19:58:02 UTC