Skip to content

Commit 2387fdc

Browse files
committed
fix formatting
1 parent 9ae367c commit 2387fdc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -14400,19 +14400,19 @@ described in the previous section).
1440014400

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

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

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

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

0 commit comments

Comments
 (0)