Re: [whatwg/webidl] Spec should be clearer than a `Promise<T>` argument also accepts `T` objects (Issue #1494)

mkruisselbrink left a comment (whatwg/webidl#1494)

Re 2, I think the [react to a Promise&lt;T>](https://webidl.spec.whatwg.org/#dfn-perform-steps-once-promise-is-settled) algorithm and similar webidl algorithms do a lot of the heavy lifting for making sure you actually get a `T`. But yeah, any algorithm ingesting a promise needs to do something to handle the promise rejecting or resolving with an unexpected type.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1494#issuecomment-2971897766
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1494/2971897766@github.com>

Received on Friday, 13 June 2025 22:47:41 UTC