New Post: Host objects that implement IExpando (IDispatchEx)
I am using JScript engine. I am exposing IE's HTMLWindow2 object to the engine as a global object. I suppose my best option would be to implement IDynamicMetaObjectProvider.
View ArticleNew Post: Host objects that implement IExpando (IDispatchEx)
Interesting. Is JavaScript code able to access the object's predefined members (e.g., alert())?
View ArticleNew Post: Host objects that implement IExpando (IDispatchEx)
Yes, accessing members works fine.
View ArticleNew Post: Host objects that implement IExpando (IDispatchEx)
I ended up modifying ClearScript source to solve this problem. I modified HostItemprivate bool BindSpecialTarget<T>(out T specialTarget) where T : class and included the following code at the...
View ArticleNew Post: How to pass short int from script to C# methods
I have tried the above code with JScriptEngine, it has the same issues with singles. What are the main differences between the V8ScriptEngine and JScriptEngine? How should I make the choice between the...
View ArticleNew Post: Debugging with node-inspector
There is a node.js package called node-inspector to debug node applications.https://www.npmjs.com/package/node-inspector I tried using it to debug my V8 scripts on ClearScript but could not succeed. I...
View ArticleNew Post: Host objects that implement IExpando (IDispatchEx)
Great to hear that you found a solution. Thanks!
View ArticleNew Post: How to pass short int from script to C# methods
Hi James2015Li, Those classes provide access to two very different JavaScript engines.JScript is the engine used by Internet Explorer 8 and earlier. It's relatively slow and doesn't support newer...
View ArticleNew Post: How to pass short int from script to C# methods
Thank you very much for the clarification.
View ArticleNew Post: Debugging with node-inspector
After long hours of googling and testing I did succeed debugging ClearScript code using node-inspector. First of all, the latest version (0.12.3) has many extensions for debugging node.js scripts so I...
View ArticleNew Post: Debugging with node-inspector
Hello ahmetuzun, Based on a brief investigation, it looks like node-inspector expects to find certain node.js variables in the script environment. Here's one of the first messages ClearScript receives:...
View ArticleNew Post: Debugging with node-inspector
Here is the video of the node-inspector debugger embedded in a C# application. The application uses the following libraries: CefSharp to embed Chrome browser in the application...
View ArticleCreated Issue: [BUG] JavaScript integer arguments don't match System.[S]Byte...
A JavaScript numeric argument, if it can be converted to an integer without data loss, should match `System.[S]Byte` and `System.[U]Int16` parameters if the narrowing conversion doesn't result in...
View ArticleEdited Issue: [BUG] Explicit conversion is always required for System.[S]Byte...
A numeric argument, if it can be converted to an integer without data loss, should match `System.[S]Byte` and `System.[U]Int16` parameters if the narrowing conversion doesn't result in overflow.
View ArticleEdited Issue: [BUG] Casting is always required for System.[S]Byte and...
A numeric argument, if it can be converted to an integer without data loss, should match `System.[S]Byte` and `System.[U]Int16` parameters implicitly if the narrowing conversion doesn't result in...
View ArticleEdited Issue: [BUG] Casting is always required for [S]Byte and [U]Int16...
A numeric argument, if it can be converted to an integer without data loss, should match `System.[S]Byte` and `System.[U]Int16` parameters implicitly if the narrowing conversion doesn't result in...
View ArticleNew Post: How to pass short int from script to C# methods
We're tracking this issue here; it'll be fixed in the next point release, along with the issue affecting field and property assignment. Thanks again!
View ArticleNew Post: Host objects that implement IExpando (IDispatchEx)
We're tracking this issue here; it'll be fixed in the next point release. Thanks again!
View ArticleCreated Issue: [BUG] Exposed IDispatchEx instances don't support dynamic...
Exposed COM objects that implement `IDispatchEx` should provide full dynamic access (a-la `IPropertyBag`).
View ArticleCreated Unassigned: On Error Resume Next in VBScript [97]
I have previously used the MSScriptControl COM object and have switched to ClearScript. The problem I am seeing, currently, is that whatever implementation ClearScript uses doesn't honor the On Error...
View Article