Re: [mediacapture-screen-share] Behavior for getDisplayMedia() and getDisplayMedia({}) should be the same (#65)

> Such arguments are always considered to have a default value of an empty dictionary

To clarify what I think @foolip is saying—because I tripped over it—an *"empty dictionary"* here isn't actually empty, but populated with its default values, which means all the following calls are indistinguishable:
```js
getDisplayMedia()
getDisplayMedia({})
getDisplayMedia({video: false})
getDisplayMedia({audio: false})
getDisplayMedia({video: false, audio: false}) // <-- what implementation prose sees
```
Having our prose interpret all of these as {video: true}` would be confusing.

I agree with others here that we should let `getDisplayMedia` fail here instead.


-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/65#issuecomment-442321703 using your GitHub account

Received on Wednesday, 28 November 2018 05:08:56 UTC