New Post: Scaling V8
Hi Shrainik,​ 25000 Engines divided across 25 runtimes take up 11GB of memory.​ We've reproduced these numbers using a trivial native test program (no .NET, no ClearScript), so V8's implementation...
View ArticleNew Post: ActiveXObject implementation
hi, how can i implement an ActiveXObject class? i would add it as host-type
View ArticleNew Post: ActiveXObject implementation
Hi furesoft, You could implement ActiveXObject as a dynamic object class (see DynamicObject and/or IDynamicMetaObjectProvider). That wouldn't be a trivial project, but it should be possible. We're...
View ArticleNew Post: validate js
Hi furesoft, Consider using a JavaScript parsing library. Esprima is one that's written in JavaScript. Cheers!
View ArticleNew Post: vbs events
Hi furesoft, Are you asking about handling .NET events in VBScript code running in ClearScript? Thanks!
View ArticleNew Post: vbs events
Hi again, Suppose you have a .NET class with an event:publicclass Foo { publicevent EventHandler SomethingHappened; publicvoid MakeSomethingHappen() { if (SomethingHappened != null)...
View ArticleCommented Issue: [FIXED] Fatal error in heap setup, Allocation failed -...
Hi, While investigating some memory related issues in my application, I managed to reproduce what seems to be a problem. The following minimal application terminates on my PC after ~50 cycles and...
View ArticleNew Post: Global window object
Is there a way to create a global "window" object. And has it been done already?
View ArticleCommented Issue: [FIXED] Fatal error in heap setup, Allocation failed -...
Hi, While investigating some memory related issues in my application, I managed to reproduce what seems to be a problem. The following minimal application terminates on my PC after ~50 cycles and...
View ArticleNew Post: Global window object
Hi AndersBillLinden, ClearScript lets you expose any .NET object to the script engine. Do you already have an implementation for the object you require? Cheers!
View ArticleNew Post: Global window object
Yes, I was exposing the window object like this:var engine = new V8ScriptEngine(); engine.AddHostObject("window", new Window()); Then I can have a class Window that looks like this:using System;...
View ArticleNew Post: Global window object
Seems the forum translated my plus sign, however after I had written this comment, the plus sign was ok again
View ArticleNew Post: Global window object
Not sure if it is possible in ClearScript but this is what i used var alert = window.alert; var prompt = window.prompt; var confirm = window.confirm;
View ArticleNew Post: validate js
Jint also has a .NET implementation of Esprima (I have written one myself too for an IDE). So you can also do the code validation in .NET.
View ArticleNew Post: Global window object
Then I could of course just create some global functions and run the corresponding functions in the window object from them. But javascript has a global object, so if clearscript is a correct...
View ArticleNew Post: Global window object
Hi AndersBillLinden, The global object is provided by the underlying script engine, and ClearScript does not allow you to replace it. However, ClearScript lets you expose a host object so that its...
View Article