New Post: Clearscript V8 engine hang while debugging
Hi, Thanks for the hint. Best, Marco
View ArticleNew Post: Script Security
Hello, I would like implement some security feature to prevent user from executing malicious script. like scripts contains some script to delete file.Is any code access security is option available in...
View ArticleNew Post: Script Security
Hello Praveen, Initially a ClearScript JavaScript engine provides no access to the file system. It exposes no APIs except JavaScript intrinsics such as Object, Function, and Math. For script code to...
View ArticleNew Post: Code Caching
How is this different from caching the compiled script, and wouldn't that be faster ?
View ArticleNew Post: Code Caching
You can reuse cache data across V8 runtimes, or store it externally and reuse it across processes. Compiled scripts do not support these scenarios.
View ArticleNew Post: Next point release with V8 5.5?
When is the next point release for ClearScript scheduled? will it be build against v8 5.5 or later? I have tried but haven't been able to v8update.cmd to build 5.5. the script fails on patching v8.
View ArticleNew Post: Switching the global context
Hello, is there any way to create and manage global contexts (the global object as well as built-ins and intrinsics) with ClearScript? We are using ClearScript to load and run extensions to our...
View ArticleNew Post: Next point release with V8 5.5?
Greetings! We don't have an exact date for you, but ClearScript 5.4.9, paired with V8 5.5, should be out within a few weeks. Thanks!
View ArticleNew Post: Switching the global context
Hi ZoneRunner, Yes, this is possible. Normally, when you invoke the V8ScriptEngine constructor, ClearScript creates a V8 context within a dedicated V8 runtime (a.k.a. isolate). To create multiple V8...
View ArticleNew Post: Switching the global context
Ah great! A couple more questions: Both, the V8Runtime constructor and the V8Runtime.CreateScriptEngine() method take debug mode and port parameters. Can I actually have a debug port per isolate or are...
View ArticleNew Post: Switching the global context
V8 supports one debug port per isolate/runtime, although, to be honest, we've never tested multiple debug ports in a single process. Once you've enabled debugging in a given isolate/runtime, you can't...
View ArticleNew Post: Switching the global context
Oh I did not notice that yet. But if I understand this correctly, it means I can directly use chrome to debug in the future. Good news then. Thanks!
View ArticleNew Post: MsgBox and InputBox error in VBScript
Hi, I'm trying to use ClearScript to run a bunch of legacy VBScript's. However, im getting a "Permission Denied 0x800a0046" error when I call MsgBox or InputBox. Do I need to set up the engine in a...
View ArticleNew Post: MsgBox and InputBox error in VBScript
Hi Jesper, For these functions to work, you must provide an implementation of Microsoft.ClearScript.Windows.IHostWindow. Here's a minimal example:internalclass HostWindow : IHostWindow { public IntPtr...
View ArticleNew Post: MsgBox and InputBox error in VBScript
Thanks ! Now it's working. Regards Jesper Sandgaard
View ArticleNew Post: Native Visual C++
In the Description it says "ClearScript is a library that makes it easy to add scripting to your .NET applications.". How about native vc++? Is it possible to use ClearScript with unmanaged c++ code?
View ArticleNew Post: Convert .net IEnumerable to JS array
Hi, I have a JS script, which I cannot change and I need to execute it to get a result. I successfully passed some objects into the engine but I have a problem with arrays. Since I have no control over...
View ArticleNew Post: Native Visual C++
Hi Hrnkas, Thanks for your question! ClearScript's main goal is to make existing .NET objects and types scriptable with minimal effort. To that end it relies heavily on .NET features such as reflection...
View ArticleNew Post: Convert .net IEnumerable to JS array
Hello Petr, How can I convert .net array into JS array without modification of the script? You can use the script engine as a helper. Here's a simple extension method that converts a .NET collection...
View ArticleNew Post: Convert .net IEnumerable to JS array
Thank you very much. Since I need to be maximally compatible with JS, I chose the first option and it works.
View Article