Skip to content

Commit

Permalink
Editorial: Update use of WebIDL "invoke a callback function" (#172)
Browse files Browse the repository at this point in the history
This algorithm can now handle the need to report an exception thrown by the callback. Some small tweaks are made for consistency with other specifications.

Part of whatwg/webidl#1425.
  • Loading branch information
jeremyroman authored Aug 9, 2024
1 parent b0ca499 commit 9ae72d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ <h2>
<ol>
<li>[=Queue a task=] on the [=geolocation task
source=] with a step that [=invokes=]
|successCallback| with |cachedPosition|.
|successCallback| with « |cachedPosition| » and "`report`".
</li>
<li>Terminate this algorithm.
</li>
Expand Down Expand Up @@ -971,7 +971,8 @@ <h2>
<li>Stop the |timeout|.
</li>
<li>[=Queue a task=] on the [=geolocation task source=] with
a step that [=invokes=] |successCallback| with |position|.
a step that [=invokes=] |successCallback| with « |position| »
and "`report`".
</li>
</ol>
</li>
Expand Down Expand Up @@ -1043,7 +1044,7 @@ <h2>
{{GeolocationPositionError/code}} attribute is initialized to |code|.
</li>
<li>[=Queue a task=] on the [=geolocation task source=] with a step
that [=invokes=] |callback| with |error|.
that [=invokes=] |callback| with « |error| » and "`report`".
</li>
</ol>
</section>
Expand Down

0 comments on commit 9ae72d3

Please sign in to comment.