Re: [heycam/webidl] Possible mistake in overload resolution algorithm (#1009)

The tricky part here is that we need to convert _V_ to the eventual target type (whether that be a union type as here, or a nullable type, or an annotated type) without getting the `@@iterator` property again. We could potentially add an optional "iterator getter _method_" parameter to the algorithm ["converting an ECMAScript value to an IDL value"](https://heycam.github.io/webidl/#dfn-convert-ecmascript-to-idl-value), and pass that value through the conversion algorithms for union types, nullable types, and annotated types.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/1009#issuecomment-896318999

Received on Tuesday, 10 August 2021 21:11:28 UTC