[whatwg/webidl] Define "promise" (Issue #1672)

saschanaz created an issue (whatwg/webidl#1672)

### What is the issue with the Infra Standard?

Several specs seem to create a promise without defining what "promise" is, e.g. https://html.spec.whatwg.org/#dom-img-decode

> Let promise be a new promise.

Most of them eventually return and expose it via Web IDL `Promise`, which is [defined as a JS Promise](https://webidl.spec.whatwg.org/#idl-promise). But if we start to use it internally in the spec, like https://github.com/whatwg/fullscreen/pull/251 and https://github.com/w3c/screen-orientation/pull/269 intend to do (and like [Streams](https://streams.spec.whatwg.org/) does all over its internal slots), things are less clear what those promises are intended to be.

Having an infra definition referring to JS Promise would be helpful for that.

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

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

Received on Tuesday, 10 November 2026 15:04:54 UTC