[heycam/webidl] "Upon settling" example incorrect (#788)

https://heycam.github.io/webidl/#ref-for-dfn-perform-steps-once-promise-is-settled%E2%91%A1

This example tries to resolve/reject a promise that's already settled. I guess it's supposed to resolve |p| rather than |promise|.

I think this error indicates the example is perhaps convoluted? "Upon settling" returns a new promise like `promise.then(onFulfilled, onRejected)`. If the example takes advantage of this, it wouldn't need two similarly-named promises in the same scope.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/788

Received on Monday, 2 September 2019 10:32:12 UTC