[heycam/webidl] Missing argument handling (#461)

Browsers throw exceptions if DOM APIs are invoked with missing arguments, and it's been this way for a while.

This behaviour doesn't seem clearly specified here, however. The algorithm for resolving overloaded function calls will indeed cause `TypeError` to be thrown if the arguments don't match any overload. However, from the definition of overloaded operations above:

> If a regular operation or static operation defined on an interface has an identifier that is the same as the identifier of another operation on that interface of the same kind (regular or static), then the operation is said to be overloaded. 

this algorithm doesn't seem to apply to non-overloaded calls.

It seems sensible to have this mentioned somewhere - I'm happy to PR it in.


-- 
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/461

Received on Monday, 16 October 2017 17:31:46 UTC