Skip to content

Commit e017adc

Browse files
authored
Use [=AbortSignal/aborted=] (#93)
Split from #86 as it's not directly related to abort reasons.
1 parent c5e09d1 commit e017adc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ The <dfn method for=LockManager>request(|name|, |callback|)</dfn> and
504504
1. If both |options|["`steal`"] and |options|["`ifAvailable`"] are true, then return [=a promise rejected with=] a "{{NotSupportedError}}" {{DOMException}}.
505505
1. If |options|["`steal`"] is true and |options|["`mode`"] is not "{{LockMode/exclusive}}", then return [=a promise rejected with=] a "{{NotSupportedError}}" {{DOMException}}.
506506
1. If |options|["`signal`"] [=map/exists=], and either of |options|["`steal`"] or |options|["`ifAvailable`"] is true, then return [=a promise rejected with=] a "{{NotSupportedError}}" {{DOMException}}.
507-
1. If |options|["`signal`"] [=map/exists=] and its [=AbortSignal/aborted flag=] is set, then return [=a promise rejected with=] an "{{AbortError}}" {{DOMException}.
507+
1. If |options|["`signal`"] [=map/exists=] and is [=AbortSignal/aborted=], then return [=a promise rejected with=] an "{{AbortError}}" {{DOMException}.
508508
1. Let |promise| be [=a new promise=].
509509
1. [=Request a lock=] with |promise|, the current [=/agent=], |environment|'s [=environment/id=], |origin|'s [=/lock manager=], |callback|, |name|, |options|["`mode`"], |options|["`ifAvailable`"], |options|["`steal`"], and |options|["`signal`"].
510510
1. Return |promise|.
@@ -686,7 +686,7 @@ To <dfn>process the lock request queue</dfn> |queue|:
686686
1. [=set/Append=] |lock| to |manager|'s [=lock manager/held lock set=].
687687
1. [=parallel queue/Enqueue the following steps=] on |callback|'s [=relevant settings object=]'s [=environment settings object/responsible event loop=]:
688688
1. If |signal| is present, then run these steps:
689-
1. If |signal|'s [=AbortSignal/aborted flag=] is set, then run these steps:
689+
1. If |signal| is [=AbortSignal/aborted=], then run these steps:
690690
1. [=parallel queue/Enqueue the following step=] to the [=lock task queue=]:
691691
1. [=Release the lock=] |lock|.
692692
1. Return.

0 commit comments

Comments
 (0)