Re: [whatwg/webidl] Allow dictionaries and callbacks to be distinguishable (Issue #1191)

It seems like both the union conversion & overload resolution algorithms would already behave sensibly if a dot were added to that grid as both have `if IsCallable(V) and there’s a...` branches before dictionary.

I thought maybe [[LegacyTreatNonObjectAsNull]](https://webidl.spec.whatwg.org/#LegacyTreatNonObjectAsNull) might have been a factor, but it only does its weird thing when nullable and that would preclude it from being in a union with a dictionary in the cases where it needs to be regardless. Less certain if that’s also true for overload distinguishability already.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1191#issuecomment-1250129702

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1191/1250129702@github.com>

Received on Saturday, 17 September 2022 19:39:15 UTC