Commented Issue: [BUG] Weak handle contexts are leaked during explicit...
When cached V8 objects are explicitly disposed during V8 context destruction, the weak states of their handles must be cleared and the associated weak callback contexts deleted.Comments: Fixed in...
View ArticleEdited Issue: [BUG] DynamicObject: Unable to invoke method with Int argument...
I've been testing some of the ClearScript functionality based on following versions and an ability to invoke DynamicObject methods with various parameters. My testing didn't go far, I immediately...
View ArticleCommented Issue: [BUG] DynamicObject: Unable to invoke method with Int...
I've been testing some of the ClearScript functionality based on following versions and an ability to invoke DynamicObject methods with various parameters. My testing didn't go far, I immediately...
View ArticleCreated Unassigned: Cannot Access IReadOnlyCollection via interface Property...
I am running into a very strange issue where I cannot use the indexer of an IReadOnlyCollection when it is exposed via an interface property. Below is a code example of the problem. The second line of...
View ArticleEdited Unassigned: Cannot Access IReadOnlyCollection via interface Property [91]
I am running into a very strange issue where I cannot use the indexer of an IReadOnlyCollection when it is exposed via an interface property. Below is a code example of the problem. The second line of...
View ArticleCommented Unassigned: Cannot Access IReadOnlyCollection via interface...
I am running into a very strange issue where I cannot use the indexer of an IReadOnlyCollection when it is exposed via an interface property. Below is a code example of the problem. The second line of...
View ArticleCommented Issue: [BUG] DynamicObject: Unable to invoke method with Int...
I've been testing some of the ClearScript functionality based on following versions and an ability to invoke DynamicObject methods with various parameters. My testing didn't go far, I immediately...
View ArticleClosed Issue: [BUG] DynamicObject: Unable to invoke method with Int argument...
I've been testing some of the ClearScript functionality based on following versions and an ability to invoke DynamicObject methods with various parameters. My testing didn't go far, I immediately...
View ArticleClosed Issue: [BUG] Weak handle contexts are leaked during explicit disposal...
When cached V8 objects are explicitly disposed during V8 context destruction, the weak states of their handles must be cleared and the associated weak callback contexts deleted.Comments: Closing fixed...
View ArticleClosed Issue: [BUG] Script execution blocks V8 script item finalization [86]
The V8 script item finalizer currently requires a V8 runtime lock. If the runtime is executing a long-running script, it can block the finalization thread and cause out-of-control memory consumption...
View ArticleEdited Issue: Cannot Access IReadOnlyCollection via interface Property [91]
I am running into a very strange issue where I cannot use the indexer of an IReadOnlyCollection when it is exposed via an interface property. Below is a code example of the problem. The second line of...
View ArticleClosed Issue: Cannot Access IReadOnlyCollection via interface Property [91]
I am running into a very strange issue where I cannot use the indexer of an IReadOnlyCollection when it is exposed via an interface property. Below is a code example of the problem. The second line of...
View ArticleUpdated Wiki: Home
Description ClearScript is a library that makes it easy to add scripting to your .NET applications. It currently supports JavaScript (via V8 and JScript) and VBScript.FeaturesSimple usage; create a...
View ArticleNew Post: alert does not work ?
Hi Why the following code crashs :using (var engine = new Microsoft.ClearScript.Windows.JScriptEngine()) { engine.Execute("alert('hello world')"); } Is there is a way to display messagebox like alert...
View ArticleNew Post: alert does not work ?
Hello Sybaris, The alert method is part of the Web API, which is usually provided by web browsers and is not part of the JavaScript standard. However, you can easily expose a similar method based on...
View ArticleNew Post: alert does not work ?
Hi, Thanks for your answer. Is there is a way to declare same API alert (an action and not a function), but without using Script (dynamic) property ? Something like that :engine.AddHostType("alert",...
View ArticleNew Post: Add functions and property from an Interface to a new API of the...
Hi, I have the following code with a class that expose an interface. I would like to expose my interface to javascript engine, but not using "objects". public interface ITest { void foo(string s);...
View ArticleNew Post: alert does not work ?
Hi again, Sure, you can do it this way: engine.AddHostObject("alert", new Action<string>(msg => MessageBox.Show(msg))); engine.Execute("alert('Hello, world!')");Cheers!
View ArticleNew Post: Add functions and property from an Interface to a new API of the...
Hi Sybaris, You can use the "global members" feature to achieve the desired effect: ITest t = new Test(); engine.AddRestrictedHostObject("test", HostItemFlags.GlobalMembers, t);...
View ArticleNew Post: alert does not work ?
Hi, Thanks. this is exactly the solution I was looking for. I was not very far :-) AddHostType instead of AddHostObject ... Regards, Sybaris
View Article