Skip to content

Commit

Permalink
Editorial: Parameterize TaskSignal.any() realm and fix linking (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaseley authored Apr 9, 2024
1 parent 27cd411 commit d1bf8ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions spec/controlling-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ handler IDL attribute=] for the `onprioritychange` [=event handler=], whose [=ev
type=] is <dfn event for=TaskSignal>prioritychange</dfn>.

The static <dfn method for=TaskSignal><code>any(|signals|, |init|)</code></dfn> method steps are to
return the result of [=creating a dependent task signal=] from |signals| and |init|.
return the result of [=creating a dependent task signal=] from |signals|, |init|, and the
[=current realm=].

<hr>

Expand All @@ -153,11 +154,11 @@ To <dfn for="TaskSignal">add a priority change algorithm</dfn> |algorithm| to a
object |signal|, [=set/append=] |algorithm| to |signal|'s [=TaskSignal/priority change algorithms=].

<div algorithm>
To <dfn>create a dependent task signal</dfn> from a [=list=] of {{AbortSignal}} objects |signals|
and a {{TaskSignalAnyInit}} |init|:
To <dfn>create a dependent task signal</dfn> from a [=list=] of {{AbortSignal}} objects |signals|,
a {{TaskSignalAnyInit}} |init|, and a |realm|:

1. Let |resultSignal| be the result of <a for=AbortSignal>creating a dependent signal</a> from
|signals| using the {{TaskSignal}} interface and the [=current realm=].
|signals| using the {{TaskSignal}} interface and |realm|.
1. Set |resultSignal|'s [=TaskSignal/dependent=] to true.
1. If |init|["{{TaskSignalAnyInit/priority}}"] is a {{TaskPriority}}, then:
1. Set |resultSignal|'s [=TaskSignal/priority=] to |init|["{{TaskSignalAnyInit/priority}}"].
Expand Down
2 changes: 1 addition & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ spec: dom; urlPrefix: https://dom.spec.whatwg.org/#
spec: requestidlecallback; urlPrefix: https://www.w3.org/TR/requestidlecallback/#;
type: method;
text: requestIdleCallback(); for: Window; url: dom-window-requestidlecallback
spec: ECMASCRIPT urlPrefix: https://tc39.es/ecma262/#;
spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/#;
type: dfn
text: current realm; url: current-realm
</pre>
Expand Down

0 comments on commit d1bf8ab

Please sign in to comment.