New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 676027 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Bindings: code generator does not send nullptr for nullable callback

Project Member Reported by zqzh...@chromium.org, Dec 20 2016

Issue description

A follow-up of 675859:

In the IDL I now have:

```
FooCallback = void();

interface I { void f(FooCallback? callback); }
```

However the generated code does not pass nullptr to the C++ implementation if the page has the following in js:
```
I.f(null);
```

I checked the generated bindings and it's creating a Blink callback object even if it's null.
 
Summary: Bindings: code generator does not send nullptr for nullable callback (was: Bindings: code generator does not send nullptr callback for FooCallback?)

Sign in to add a comment