Re: [whatwg/webidl] Force `[NewObject]` for Promise returning functions? (Issue #1084)

I could imagine a collection of promises with a `get()` method that would return the same promise, depending on the arguments passed.

Similarly, I think we have cases where attributes can return a new promise after the corresponding object has undergone a (fundamental) state change.

So unfortunately I don't think there's a hard-and-fast rule here, but it's something to be looked at on a case-by-case basis.

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

Message ID: <whatwg/webidl/issues/1084/1018423828@github.com>

Received on Friday, 21 January 2022 11:29:25 UTC