Re: [w3c/ServiceWorker] Editorial: Queue a task to resolve/reject promise or when fire an event. (PR #1755)

@yoshisatoyanagisawa commented on this pull request.



> @@ -2008,15 +2013,16 @@ spec: storage; urlPrefix: https://storage.spec.whatwg.org/
 
         1. Let |promise| be [=a new promise=].
         1. Run these substeps [=in parallel=]:
-            1. Let |p| be the result of running the algorithm specified in {{Cache/matchAll(request, options)}} method with |request| and |options|.
-            1. Wait until |p| settles.
-            1. If |p| rejects with an exception, then:
-                1. Reject |promise| with that exception.
-            1. Else if |p| resolves with an array, |responses|, then:
-                1. If |responses| is an empty array, then:
-                    1. Resolve |promise| with undefined.
-                1. Else:
-                    1. Resolve |promise| with the first element of |responses|.
+            1. [=Queue a task=] on |promise|'s [=relevant settings object=]'s [=responsible event loop=], using the [=DOM manipulation task source=], to run the following steps:

ditto

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1755#pullrequestreview-2620072639
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1755/review/2620072639@github.com>

Received on Monday, 17 February 2025 05:40:17 UTC