New issue
Advanced search Search tips

Issue 838787 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Sep 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 839389



Sign in to add a comment

IDL compiler: Handle optional arguments before distinguishing arguments

Project Member Reported by peria@chromium.org, May 2 2018

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.

 

Comment 1 by peria@chromium.org, May 3 2018

Blockedon: 839389

Comment 2 by peria@chromium.org, May 25 2018

Labels: Hotlist-Bindings-IDLCompiler
Status: WontFix (was: Assigned)
This issue seems not feasible with the spec.

Sign in to add a comment