New Post: Callbacks for some host objects are not executing
I obtain the window object in DWebBrowserEvents2_Event.NavigateComplete2 event. Following is some stripped down code snippets:public void OnNavigateComplete(object pDisp, ref object URL) { var browser...
View ArticleNew Post: Callbacks for some host objects are not executing
Thanks. Some more questions as we try to replicate your environment:Where are the browser events coming from? It looks like you're using a native browser control, or perhaps you're working on a...
View ArticleNew Post: Callbacks for some host objects are not executing
The code is part of a BHO. I subscribe to the events in IObjectWithSite.SetSiteFor historical reasons. The script is wrapped into a self-executing function which passes window object as the global...
View ArticleNew Post: Callbacks for some host objects are not executing
Hi frolovm, We don't have a BHO test harness, so we're testing with a simple WPF app that uses the WebBrowser XAML control, which exposes the same underlying COM objects. We can confirm that passing an...
View ArticleNew Post: Callbacks for some host objects are not executing
Hi again, Further investigation reveals that the MSHTML+JScript implementation of setTimeout requires that the supplied callback be a function within the DOM's private script collection, so it isn't...
View ArticleNew Post: ClearScript support for .Net4.0
Hi Guys, Wondering if ClearScript would work in it's full glory on .Net 4.0..? The reason I am asking is an requirement to get an App that uses ClearScript to work on Windows XP. Currently, JINT works...
View ArticleNew Post: ClearScript support for .Net4.0
Hi i2infinity, .NET 4.0 is ClearScript's target platform. As for Windows XP, we've done a small bit of testing with the current version (5.4.4), and it appears to work, but no guarantees :) Some...
View ArticleClosed Issue: [BUG] Casting is always required for [S]Byte and [U]Int16...
A numeric argument, if it can be converted to an integer without data loss, should match `System.[S]Byte` and `System.[U]Int16` parameters implicitly if the narrowing conversion doesn't result in...
View ArticleClosed Issue: [BUG] JScript for..in loop fails in Standards Mode [94]
It appears that the for/in loop is not working when JScript engine is initialized with WindowsScriptEngineFlags.EnableStandardsMode flag.I tried adding PropertyBag and ExpandoObject as host objects.I...
View ArticleClosed Issue: [BUG] Exposed IDispatchEx instances don't support dynamic...
Exposed COM objects that implement `IDispatchEx` should provide full dynamic access (a-la `IPropertyBag`).Comments: Closing resolved issues.
View ArticleClosed Feature: [FEATURE] C# direct access to TypedArray data [83]
I have a need to pass large amounts of data back and forth between JavaScript and C#. Ideally I would like to create a Float32Array in JavaScript and then access it as a native array or byte array in...
View ArticleNew Post: Transfer object as JavaScript object
Hi! We're using ClearScript V8 to render React on the server. Works great, but it slows down a bit when there's a lot of data that needs to be passed to V8. Our current approach is to serialize the...
View ArticleNew Post: Transfer object as JavaScript object
I changed the code to expose a Dictionary<string, object> on Engine.Script instead, and iterate over that and convert it to a real JS object. But that turned out to be more than twice as slow as...
View ArticleNew Post: Transfer object as JavaScript object
Hello! You're already doing the right thing by using JSON to minimize hops across the .NET-V8 boundary. Your next optimization might be to minimize your use of V8's JavaScript parser. To that end,...
View ArticleNew Post: Transfer object as JavaScript object
Thanks for the tip, I'll try it and report back!
View ArticleUpdated 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 ArticleNew Post: Transfer object as JavaScript object
Using JSON.parse instead of embedding the JSON in the call expression didn't make a difference in performance unfortunately. Are there any plans on integrating ClearScript with Chakra now that Chakra...
View ArticleNew Post: Transfer object as JavaScript object
Hi again, A test that generates large JSON structures (source code here) reveals that V8's JSON parser is 3-4 times as fast as its JavaScript parser, at least when it comes to processing JSON. Consider...
View ArticleNew Post: Callbacks for some host objects are not executing
Hi, I've created a fork named StandardsPlusMode. It is based on 5.4.3 version of ClearScript. I've made changes to it to enable the latest Javascript features in the JScriptEngine. This is the code I...
View ArticleNew Post: Callbacks for some host objects are not executing
Hi frolovm, Thanks for sharing your changes. We've reproduced the issue and are investigating. Apparently the limitation mentioned above applies only to legacy JScript, whereas Chakra's requirements...
View Article