Skip to content

Commit 714aeb3

Browse files
authored
Editorial: Update use of WebIDL "invoke a callback function" (#102)
Part of whatwg/webidl#1425.
1 parent 4b53840 commit 714aeb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/scheduling-tasks.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ A <dfn>task handle</dfn> is a [=struct=] with the following [=struct/items=]:
318318
steps:
319319
1. Let |event loop| be the |scheduler|'s [=relevant agent=]'s [=agent/event loop=].
320320
1. Set |event loop|'s [=event loop/current scheduling state=] to |state|.
321-
1. Let |callbackResult| be the result of [=invoking=] |callback|. If that threw an exception,
322-
then [=reject=] |result| with that, otherwise resolve |result| with |callbackResult|.
321+
1. Let |callbackResult| be the result of [=invoking=] |callback| with « » and "`rethrow`".
322+
If that threw an exception, then [=reject=] |result| with that. Otherwise, [=resolve=]
323+
|result| with |callbackResult|.
323324
1. Set |event loop|'s [=event loop/current scheduling state=] to null.
324325
1. Let |delay| be |options|["{{SchedulerPostTaskOptions/delay}}"].
325326
1. If |delay| is greater than 0, then [=run steps after a timeout=] given |scheduler|'s [=relevant

0 commit comments

Comments
 (0)