[w3c/ServiceWorker] Job promise is an ECMAScript type, not WebIDL (Issue #1731)

Is there any meaningful reason that the job promise (https://w3c.github.io/ServiceWorker/#dfn-job-promise) is linked to the ECMAScript Promise definition (https://tc39.es/ecma262/#sec-promise-objects) rather than WebIDL Promise, AKA ECMAScript PromiseCapability (https://webidl.spec.whatwg.org/#idl-promise) ?

I noticed that none of the Job promise-related AOs reference the WebIDL promise AOs, and just say to "resolve" or "reject" the promise.

I would expect that the spec would call out to the resolve (https://webidl.spec.whatwg.org/#resolve), reject (https://webidl.spec.whatwg.org/#reject) and react (https://webidl.spec.whatwg.org/#react) WebIDL operations as necessary.

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

Message ID: <w3c/ServiceWorker/issues/1731@github.com>

Received on Thursday, 3 October 2024 20:46:40 UTC