diff --git a/worklets/Overview.bs b/worklets/Overview.bs index af3967c6..d33c2df3 100644 --- a/worklets/Overview.bs +++ b/worklets/Overview.bs @@ -449,14 +449,16 @@ When the user agent is to fetch and invoke a worklet script given |wo 2. Reject |promise| with an "{{AbortError}}" {{DOMException}}. - 4. If |script|'s error to rethrow is not null, then run these steps: + 4. If |script|'s error to rethrow is not null, then queue a task on + |outsideSettings|'s responsible event loop given |script|'s error to rethrow + to run these steps: 1. If |pendingTaskStruct|'s counter is not -1, then run these steps: 1. Set |pendingTaskStruct|'s counter to -1. - 2. Reject |promise| with |script|'s error to rethrow. + 2. Reject |promise| with error to rethrow. 5. Run a module script given |script|.