Skip to content

Commit 513c5ea

Browse files
Ms2gerbzbarsky
authored andcommitted
Correct non-normative summary of the overload resolution algorithm. (#822)
1 parent 5e51b73 commit 513c5ea

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11088,10 +11088,14 @@ Note: The HTML Standard defines how a security check is performed. [[!HTML]]
1108811088
and there is an overload with an optional argument at this position, then
1108911089
we will choose that overload. If there is no valid overload for the type of
1109011090
value passed in here, then we throw a {{ECMAScript/TypeError}}.
11091-
The inspection of the value at the distinguishing argument index does not have any side effects;
11092-
the only side effects that come from running the overload resolution
11093-
algorithm are those that come from converting the ECMAScript values
11094-
to IDL values.
11091+
Generally, the inspection of the value at the distinguishing argument index does not have any
11092+
side effects, and the only side effects in the overload resolution algorithm are the result of
11093+
converting the ECMAScript values to IDL values.
11094+
(An exception exists when one of the overloads has a [=sequence type=] or [=frozen array type=]
11095+
at the distinguishing argument index.
11096+
In this case, we attempt to get the {{@@iterator}} property to determine the appropriate
11097+
overload, and perform the conversion of the distinguishing argument separately before continuing
11098+
with the next step.)
1109511099

1109611100
At this point, we have determined which overload to use. We now
1109711101
convert the remaining arguments, from the distinguishing argument onwards,

0 commit comments

Comments
 (0)