Re: [webrtc-pc] Make promise rejection/enqueing consistent

If an error can be determined directly, we return a rejected promise right away. That's how it's done in the promise writing guide [1]. Otherwise we return a "pending" promise that can be rejected or fulfilled later.

[1] https://www.w3.org/2001/tag/doc/promises-guide#example-validated-delay

-- 
GitHub Notification of comment by adam-be
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1345#issuecomment-307091186 using your GitHub account

Received on Thursday, 8 June 2017 12:41:18 UTC