IDL compiler: Handle optional arguments before distinguishing arguments |
|||
Issue description
Currently we don't assume to have optional arguments before the distinguishing argument in overload resolution.
For example, assume we have
interface Foo {
long bar(optional short arg1, Interface arg2); // (1)
long bar(optional short arg1, CallbackFunction arg2);
};
and we want to call
foo.bar(interface);
in JS expecting (1) to be called, but we get an error NotEnoughArguments.
,
May 25 2018
,
Sep 7
This issue seems not feasible with the spec. |
|||
►
Sign in to add a comment |
|||
Comment 1 by peria@chromium.org
, May 3 2018