Type 'Function' in Web IDL:
https://heycam.github.io/webidl/#Function
The current implementation treats Function type as a sort of built-in types, and the generated bindings code just passes it as ScriptValue to Blink implementation. This is not good because it doesn't handle the incumbent realm correctly.
Let's support Function type based on blink::CalbackFunctionBase in the same way of other callback functions.
This task requires support of variadic arguments on callback functions.
Comment 1 by bugdroid1@chromium.org
, Aug 8