I am trying to pass a C# delegate/Func/Action as a parameter to a Javascript function (on('event',handler)). Right now, the thing that shows up in the JS side is not a function. What is the expected implementation of a function like this?
function myJsFunction(callback) {
callback();
}
scriptObject.myJsFunction(new Action(() => { /* YAY IT WORKED */ });