Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

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 Article



Edited 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 Article

Commented 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 Article

Created 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 Article

Edited 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 Article


Commented 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 Article

Commented 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 Article

Closed 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 Article


Closed 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 Article


Closed 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 Article

Edited 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 Article

Closed 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 Article

Updated 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 Article


New 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 Article

New 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 Article


New 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 Article

New 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 Article


New 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 Article

New 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 Article

New 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
Browsing all 2297 articles
Browse latest View live




Latest Images