-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bug. #46
Comments
Oh, the bug is display Text: MessageBox.Show("IronJS.BoxedValue"); |
I must change the Print method: static void Print(object value) |
What is the actual bug/issue here? Not following your code/logic at all. |
In the javascript code: ClrFunction1(ClrFuntion2()); the ClrFunction1 argument is a BoxedValue. |
There is currently no support for passing delegates directly into IronJS, they have to be wrapped as HostFunctionObject instances, check this https://github.com/fholm/IronJS/wiki/Exposing-a-CLR-function-as-a-native-JavaScript-function post on the wiki for reference. |
The second: If the C# has a Method like this:static void ClrInvokeJS(Action s) }Now, I register this Method to JSFunction. In the jsCode,I wan :function jsfunctionTest(s) ClrInvokeJS(jsfunctionTest);Of course, Compile failed now. But this is a good support ideas! |
Oh ,sorry. The second is support!!
|
Closed. |
JS Code:
show(Add(123,4));
C# code:
static void Print(object value)
{
MessageBox.Show(value.ToString());
}
static double Add(double x, double y)
{
return x + y;
}
And..... I changed the source with this:
.......
NOW.
It's so easy.
The text was updated successfully, but these errors were encountered: