-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields in RTCStats dictionary should be required #1476
Comments
I can't find any other normative requirement that forces them to be present, so marking them as |
Typically |
Not sure how WebIDL intends dictionaries to be used as return values, but in this spec the |
It can be used to construct an Anyway, the point I was trying to make above is that if we don't have any normative requirement that says " |
@jan-ivar Do you have an opinion? |
I do, but I've asked for clarification first in whatwg/webidl#382. |
To follow up, my thoughts here are in #1493 (comment). In short, I agree with whatwg/webidl#382 (comment) there's an implicit normative requirement that implementations must fill in this member. |
The current definition for
RTCStats
dictionary seems to allowtimestamp
andid
to be optional. For thetype
field it is only in the description that require it to be initialized. Should all 3 fields be declared as required in the WebIDL definition?The text was updated successfully, but these errors were encountered: