Skip to content

Commit

Permalink
Editorial: Update use of WebIDL "invoke a callback function"
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 committed Aug 8, 2024
1 parent 1a1835f commit 3017294
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -833,10 +833,9 @@ <h3 id="invoke-observers" algorithm>

3. Empty |observer|'s <a>report queue</a>

4. <a spec=webidl>Invoke</a> |observer|'s <a>callback</a> with a list of
arguments consisting of |reports| and |observer|, and |observer| as the
<a>callback this value</a>. If this throws an exception, <a>report the
exception</a>.
4. <a spec=webidl>Invoke</a> |observer|'s <a>callback</a> with
« |reports|, |observer| » and "`report`", and with |observer| as the
<a>callback this value</a>.
</section>

<section>
Expand Down

0 comments on commit 3017294

Please sign in to comment.