W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > June 2015

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

From: Adam Bergkvist via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 Jun 2015 07:11:36 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-111019174-1434006695-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 24 October 2017 05:05:43 UTC