Re: [mediacapture-main] getUserMedia({ }) should be a TypeError

I think `TypeError` makes sense when at least one `required` member is
 present (since it's actually possible to determine that a JavaScript 
object, missing that member, cannot represent the dictionary type). As
 you describe, it's a bit trickier in our case since we have an 
"unconstrained" dictionary.

If we add prose that, along with the dictionary WebIDL, makes up the 
new definition of the `MediaStreamConstraints` dictionary type, then I
 think `TypeError` might be appropriate.

-- 
GitHub Notif of comment by adam-be
See 
https://github.com/w3c/mediacapture-main/issues/189#issuecomment-111019174

Received on Thursday, 11 June 2015 07:11:38 UTC