Re: [heycam/webidl] Allow overload resolution to "round down"? (#581)

Maybe.  How would the JS function choose the behavior it wants in my example with three overloads, in the two-args-passed case?

Depending on how it's written, I can see it checking whether args[1] is undefined and picking overload 3 if not.  I can see it examining arguments.length and doing ... something.  I can see a JS author not creating such a daft API.  ;)

-- 
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/581#issuecomment-453162575

Received on Thursday, 10 January 2019 16:36:36 UTC