Skip to content

Add distinguishable state for cb and dictionary-like #1353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3465,7 +3465,7 @@ the following algorithm returns <i>true</i>.
<td class="belowdiagonal">
<td class="belowdiagonal">
<td>
<td>
<td>(c)
<td>●
<tr>
<th>dictionary-like
Expand Down Expand Up @@ -3503,6 +3503,16 @@ the following algorithm returns <i>true</i>.
<a href="#limit-bigint-numeric-overloading">a separate restriction on their use in
overloading</a> below. Please also note <a href="#limit-bigint-numeric-unions">the
advice about using unions of these types</a>.
1. A [=callback function=] that does not have
[{{LegacyTreatNonObjectAsNull}}] extended attribute is
distinguishable from a type in the dictionary-like category.
<div class="note">
For example, when converting an ECMAScript value to [=union
type=] which includes a [=callback function=] and a
dictionary-like type, if the value is [=ECMAScript/callable=],
then it is converted to a [=callback function=]. Otherwise, it is
converted to a dictionary-like type.
</div>
</ol>

<div class="example" id="example-distinguishability-diff-types">
Expand Down