- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
 - Date: Mon, 03 Oct 2022 21:16:32 +0000
 - To: public-webrtc-logs@w3.org
 
Folks seem to be landing on the idea that `null` shouldn't be valid input _unless_ a nullable getter exists somewhere for the thing we may wish to pass in. It's true we can always make it nullable later if we ever end up defining such a getter, except...
A flaw in this logic seems to be it assumes we are in control of all getters, or that only platform getters matter.
JS-library getters would either need to adopt the (novel?) pattern of returning `undefined`, or callers would need to use
```js
async function(foo) {
  await navigator.mediaDevices.getDisplayMedia({{controller: foo.controller && undefined});
}
```
-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/236#issuecomment-1266058429 using your GitHub account
-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 3 October 2022 21:16:34 UTC