New Post: Performance...
Thanks for posting that, UweKeim! Just to clarify, ClearScript's JScriptEngine class defaults to the JScript 5.7 feature set. Specifying WindowsScriptEngineFlags.EnableStandardsMode selects the JScript...
View ArticleNew Post: Parameter number conflict.
Perhaps something like this: engine.AddHostObject("$", new DollarSignFunc((arg1, arg2) => { var name = arg1 asstring; if (name == null) new Window(f).AddEventHandler("Load", arg1); elseif (arg2 !=...
View ArticleNew Post: Performance...
UweKeim/ClearScript - Thank you for the detailed information. This will really help! Jules
View ArticleNew Post: get js of function
is it possible to get the source of an js function via js?
View ArticleNew Post: implement uneval function
how is it possible to implement an uneval function?
View ArticleNew Post: implement uneval function
Perhaps you could start with JSON.stringify() and incorporate Function.prototype.toString()?
View ArticleNew Post: implement uneval function
i would like to implement it in c# as a function for js
View ArticleNew Post: implement uneval function
Hi furesoft, You can use DynamicObject.GetDynamicMemberNames() to enumerate the properties of a script object. However, you'll have to invoke script functions to retrieve various information such as...
View ArticleNew Post: ecmascript 6
Hi furesoft, We have no plan to explicitly enable Harmony support while it's in development. Presumably the V8 team will enable Harmony features by default sometime after the standard is finalized and...
View ArticleNew Post: Serializing a compiled script
Is it possible to serialize a compiled script? For instance do something like:byte[] result = null; using (var clearscriptV8 = new V8Runtime()) using (var stream = new MemoryStream()) { var compiled =...
View ArticleNew Post: Serializing a compiled script
Hello! Unfortunately V8Script instances are not serializable. More information here. Thanks!
View ArticleNew Post: Serializing a compiled script
Is this something that can be changed in ClearScript or is it a limitation of V8?
View ArticleNew Post: Serializing a compiled script
Hi again, V8 doesn't support serialization of compiled scripts, but it does have a somewhat similar feature that ClearScript currently doesn't leverage. In V8, script compilation optionally produces a...
View ArticleNew Post: Increasing memory during V8 usage
Hi, i have a memory problem and i don't know if it is due to a wrong usage or a problem in the engine. When I use the V8 engine a long time with many JS-calls from C#:using (var compiledFunction =...
View ArticleNew Post: Increasing memory during V8 usage
Hello querdenker, It doesn't look like you're doing anything wrong. Can you say any more about the sort of work your scripts are doing? Some general suggestions:​Make sure you're using the latest...
View ArticleNew Post: Parallel / web workers
Is there any support for parallelism or web workers in clearscript? I would like to do parallel processing within my javascript code instead of having .net facilitate it because of the overhead of...
View Article