Re: [mediacapture-main] Device enumeration spec-ed to hang (#903)

Not settling the promise means the following code would "hang", in that it never continues execution past `await`:
```js
const devices = await navigator.mediaDevices.enumerateDevices();
doUsefulThings(devices);
```

No implementation I aware of actually follows this algorithm. The promise is settled in all of them.

-- 
GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/903#issuecomment-1255934367 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 September 2022 08:30:08 UTC