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

jan-ivar has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== getUserMedia({ }) should be a TypeError ==
In hindsight, I think it's clear that `getUserMedia({ })` should be a 
`TypeError` rather than a `NotSupportedError`.

Having `{ lasers: true }` throw `NotSupportedError` may sound good, 
but gives the wrong impression, and it might surprise people to learn 
that `{ lasers: true, audio: true }` succeeds without error.

More importantly, the arrival of `requiredwe should perhaps even have 
considered TypeError instead of NotSupportedError, since the latter is
 somehwat misleading. 

See https://github.com/w3c/mediacapture-main/issues/189

Received on Wednesday, 10 June 2015 22:42:05 UTC