Re: [mediacapture-main] Is there any sense in having defaults for SupportedCapabilities?

If the default values work for output dictionaries as well, then I 
agree that it makes sense. When I checked the WebIDL spec I didn't 
think that was particularly clear.

Looking again at the spec, if you combine the fact that "Dictionary 
members with default values are always considered to be present." [1] 
with the text about how a Dictionary is converted to an ECMAScript 
Object [2], then it makes sense.

I'll update PR #300.

@alvestrand, regarding the recommendation to not use true as default 
values for operation argument dictionaries; we might add a note that 
says that this dictionary is only returned.

[1] 
http://heycam.github.io/webidl/#dfn-dictionary-member-default-value
[2] http://heycam.github.io/webidl/#es-dictionary

-- 
GitHub Notification of comment by adam-be
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/293#issuecomment-169603863
 using your GitHub account

Received on Thursday, 7 January 2016 09:08:08 UTC