Re: [whatwg/webidl] Add distinguishable state for cb and dictionary-like (PR #1353)

@bathos commented on this pull request.



> @@ -3503,6 +3503,15 @@ 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 dictionary-like category based on the
+            [=ECMAScript/callable=] state. When selecting a type for the

Minor suggestion but: I think I'd avoid the phrasing “the callable state” because “state” implies “statefulness”? ES ensures/requires that “does/doesn’t implement [[Call]]” invariantly be an “eternal characteristic” of any ES value.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1353#pullrequestreview-1580819631
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1353/review/1580819631@github.com>

Received on Wednesday, 16 August 2023 14:52:10 UTC