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 inside an
XR animation frame callback.

Part of whatwg/webidl#1425.
  • Loading branch information
jeremyroman committed Aug 2, 2024
1 parent c43a518 commit e4afebb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,7 @@ When an {{XRSession}} |session| receives updated [=viewer=] state for timestamp
1. [=XRFrame/Apply frame updates=] for |frame|.
1. For each |entry| in |session|'s [=list of currently running animation frame callbacks=], in order:
1. If the |entry|'s [=cancelled=] boolean is `true`, continue to the next entry.
1. [=Invoke the Web IDL callback function=] for |entry|, passing |now| and |frame| as the arguments
1. If an exception is thrown, [=report the exception=].
1. [=Invoke the Web IDL callback function|Invoke=] |entry| with « |now|, |frame| » and "`report`".
1. Set |session|'s [=list of currently running animation frame callbacks=] to the empty [=/list=].
1. Set |frame|'s [=XRFrame/active=] boolean to `false`.
1. If |session|'s [=pending render state=] is not `null`, [=apply the pending render state=].
Expand Down

0 comments on commit e4afebb

Please sign in to comment.