New Post: GeckoFx and WebAPI
Hi, I am using GeckoFx (core of Mozilla Firefox Browser, wrapped for C#), and I was wondering, if it's possible to provide to Clearscript engine the "document" (DOM) and "window" objects from GeckoFx ?...
View ArticleNew Post: Func and delegate
Hello Sybaris, If you expose an open generic type, script code can invoke the exposed object to yield a closed generic type: engine.AddHostObject("DotNet", new HostTypeCollection("mscorlib",...
View ArticleNew Post: Func and delegate
Hello, Wondeful, exactly the answer I was looking for :-) ClearScript is a very great projet !!! Thanks. Sybaris
View ArticleNew Post: GeckoFx and WebAPI
Hi Sybaris, We haven't tested with GeckoFX, but ClearScript aims to make it easy to use any managed API from script code. If you decide to give it a try, please let us know if you encounter something...
View ArticleNew Post: Is there a way to AddHostType with the object named in a string?
I've asked this over on StackOverflow but have included the full question here to save your mouse. I define JSengine as static JScriptEngine JSengine = null; instantiate it in Main as JSengine = new...
View ArticleNew Post: Is there a way to AddHostType with the object named in a string?
Hello, Yes, ClearScript provides AddHostType overloads that let you specify the type by name. For example: jse.AddHostType("Random", "System.Random");However, there are some considerations. First, the...
View ArticleCreated Unassigned: Repeated method call [105]
It looks like calling a JavaScript function from c# with an implicit this object will be executed twice if an exception ist thrown during execution.It is possible to work around this issue via explicit...
View ArticleNew Post: Javascript side create byte array
Hello, I'd like to use the new API for converting between byte[] and Uint8Array but I can't find any documentation. What do I need to do?
View ArticleEdited Issue: Repeated method call [105]
It looks like calling a JavaScript function from c# with an implicit this object will be executed twice if an exception ist thrown during execution.It is possible to work around this issue via explicit...
View ArticleCommented Issue: Repeated method call [105]
It looks like calling a JavaScript function from c# with an implicit this object will be executed twice if an exception ist thrown during execution.It is possible to work around this issue via explicit...
View ArticleNew Post: Javascript side create byte array
Hi ZoneRunner, Here's a sample:// using Microsoft.ClearScript.JavaScript; engine.Execute("values = new Uint8Array([1, 2, 3, 4, 5])"); var values = (ITypedArray<byte>)engine.Script.values;...
View ArticleEdited Issue: [BUG] Repeated method call [105]
It looks like calling a JavaScript function from c# with an implicit this object will be executed twice if an exception ist thrown during execution.It is possible to work around this issue via explicit...
View ArticleCreated Unassigned: Continuous Allocation of V8ScriptEngine Can Crash...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View ArticleCommented Unassigned: Continuous Allocation of V8ScriptEngine Can Crash...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View ArticleClosed Unassigned: Continuous Allocation of V8ScriptEngine Can Crash...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View ArticleEdited Issue: Continuous Allocation of V8ScriptEngine Can Crash Application...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View ArticleCommented Issue: Continuous Allocation of V8ScriptEngine Can Crash...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View ArticleCommented Issue: Continuous Allocation of V8ScriptEngine Can Crash...
When allocating a V8ScriptEngine objects within a loop causes memory to remain allocated even if you force all references to the object to null and eventually crashes the application with a...
View Article