From f25c42f40a36ee585c48c12d8a098b7ec382ef95 Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Fri, 2 Aug 2024 14:40:47 -0400 Subject: [PATCH] Editorial: Update use of WebIDL "invoke a callback function" This algorithm can now handle the need to report an exception inside an XR animation frame callback. Part of whatwg/webidl#1425. --- index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 2a83ee37..2686f0a4 100755 --- a/index.bs +++ b/index.bs @@ -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=].