- From: Peter Reitinger <notifications@github.com>
- Date: Tue, 20 May 2025 22:03:34 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 21 May 2025 05:03:38 UTC
preitinger left a comment (w3c/ServiceWorker#1472) > The [current WebIDL for the `ServiceWorkerRegistration`](https://w3c.github.io/ServiceWorker/#serviceworkerregistration-interface) is incorrect; it shows `update()` returning `Promise<void>`. > > <img alt="Screen Shot 2019-09-16 at 4 18 56 PM" width="857" src="https://user-images.githubusercontent.com/326742/64940018-d9f9c280-d89d-11e9-98d7-37703a8a5b79.png"> > > I believe this is a mistake since implementations all return the registration object, and the [`update()` algorithm](https://w3c.github.io/ServiceWorker/#dom-serviceworkerregistration-update) says to return the registration as well. No, I think the `update algorithm` does not say that it returns the job. It just says what is done with the job and then that the `promise` is returned. Nothing is said what is in this promise which means for me it is `void`. So it was correct imo! -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1472#issuecomment-2896590072 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1472/2896590072@github.com>
Received on Wednesday, 21 May 2025 05:03:38 UTC