- From: Boris Zbarsky <notifications@github.com>
- Date: Thu, 10 Jan 2019 08:36:15 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 10 January 2019 16:36:36 UTC
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