Closed ctaggart closed 8 years ago
This definitely looks possible using the lower level Edge API. MapToHostType is converting the EdgeJsValue
, but I want it to hold onto it so that it can be passed into JsCallFunction somehow. I'll see what I can hack together.
Hello, Cameron!
I want to pass a JavaScript object reference in as an argument in CallFunction . Do you think this might be possible to do?
Answer to your question is contained in the text of error message. In addition, the documentation is clearly written:
The supported .NET types are as follows:
MsieJavaScriptEngine.Undefined
System.Boolean
System.Int32
System.Double
System.String
This definitely looks possible using the lower level Edge API. MapToHostType is converting the EdgeJsValue , but I want it to hold onto it so that it can be passed into JsCallFunction somehow. I'll see what I can hack together.
You can directly use the JsRT version of Chakra. See the following repositories: Chakra Sample Hosts and Chakra-Samples. Or wait for the release of ChakraCore.
I want to pass a JavaScript object reference in as an argument in
CallFunction
. Do you think this might be possible to do? I currently get this exception when using this code (from https://github.com/ctaggart/TsAst/issues/5):