- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Mon, 27 Sep 2021 17:34:13 +0000
- To: public-webrtc-logs@w3.org
> ``` > const nativeGDM = window.navigator.mediaDevices.getDisplayMedia; > window.navigator.mediaDevices.getDisplayMedia = function getDisplayMedia(constraints) { > const promise = nativeGDM.apply(this, arguments); > promise.then(stream => { > stream.newFeatureX = 3; > }); > return promise; > } > ``` @youennf Sorry, but each `then` on the same promise introduces a microtask checkpoint. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/190#issuecomment-928099217 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 27 September 2021 17:34:15 UTC