Re: [heycam/webidl] Given [Constructor, Constructor(DOMString x)], new C(undefined) picks the second (#351)

As previously mentioned, this is very much by design: overloads discriminate on argc first, and there are specs that depend on that.  If DOMMatrix wants to treat undefined first arg as no args, it should be doing:

    Constructor(optional DOMString transformList)

(or `Constructor(optional sequence<unrestricted double> numberSequence)`) and then handling the "not present" case.

-- 
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/351#issuecomment-297381169

Received on Wednesday, 26 April 2017 12:02:52 UTC