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

In particular by my reading the overload resolution algorithm, the step

> Remove from S all entries whose type list is not of length argcount.

immediately disqualifies the no-arg constructor from consideration.

This seems not so great. Can we "trim trailing undefineds" before invoking the overload resolution algorithm?

/cc @bzbarsky

This is concretely an issue for [DOMMatrix](https://drafts.fxtf.org/geometry/#dommatrix).

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

Received on Tuesday, 25 April 2017 20:49:52 UTC