Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyroman committed Jul 31, 2024
1 parent 9ae367c commit 2387fdc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -14400,19 +14400,19 @@ described in the previous section).

To <dfn id="invoke-a-callback-function" export>invoke</dfn> a
[=callback function type=] value |callable| with a [=Web IDL arguments list=] |args|,
exception behavior |exceptionBehavior| (either "`report`" or "`rethrow`"),
exception behavior |exceptionBehavior| (either "<code>report</code>" or "<code>rethrow</code>"),
and an optional [=callback this value|callback this value=] |thisArg|,
perform the following steps.
These steps will either return an IDL value or throw an exception.

The |exceptionBehavior| argument must be supplied if, and only if, |callable|'s
[=return type=] is not a [=promise type=]. If |callable|'s return type is neither
{{undefined}} nor {{any}}, it may not be "`report`".
{{undefined}} nor {{any}}, it may not be "<code>report</code>".

<div class="XXX">
Until call sites are updated to respect this, specifications which fail to
provide a value here when it would be mandatory should be read to supply
"`rethrow`".
provide a value here when it would be mandatory should be understood as
supplying "<code>rethrow</code>".
</div>

1. Let |completion| be an uninitialized variable.
Expand Down Expand Up @@ -14445,8 +14445,8 @@ described in the previous section).
1. [=Clean up after running script=] with |relevant settings|.
1. If |completion| is an IDL value, return |completion|.
1. [=Assert=]: |completion| is an [=abrupt completion=].
1. If |exceptionBehavior| is "`rethrow`", throw |completion|.\[[Value]].
1. Otherwise, if |exceptionBehavior| is "`report`":
1. If |exceptionBehavior| is "<code>rethrow</code>", throw |completion|.\[[Value]].
1. Otherwise, if |exceptionBehavior| is "<code>report</code>":
1. [=Assert=]: |callable|'s [=return type=] is {{undefined}} or {{any}}.
1. [=Report an exception=] |completion|.\[[Value]] for |realm|'s [=realm/global object=].
1. Return the unique {{undefined}} IDL value.
Expand Down

0 comments on commit 2387fdc

Please sign in to comment.