New Post: Returning a derived type with VBScript
Incredible! This is a huge improvement for me and helps me a lot. Thank you very much!
View ArticleNew Post: why no jscript.net?
hi, why you don´t can imlement jscript.net? it makes the engine better oop you can check if its a class definition with regex when its true you jscriptcodeprovider to compile it and automate use as...
View ArticleNew Post: why no jscript.net?
Hi furesoft, ClearScript's main goal is to give script languages the ability to access .NET objects and types. Since JScript.NET can already do that, we're not sure what value ClearScript would add to...
View ArticleNew Post: why no jscript.net?
Not sure what you mean. JScript.NET gives you OOP and full access to .NET objects and types. What value would ClearScript add?
View ArticleNew Post: can i add my own language?
Hi furesoft, You can provide your own ScriptEngine subclass. Unfortunately your code would have to be integrated with ClearScript itself, because some of ScriptEngine's abstract members are internal,...
View ArticleNew Post: Checking .NET Type
Hi, how do i compare a .NET type in V8ScringEngine? For example, i want to compare if thefollowing types are equal var x = new Order(); var y = new Customer(); if (typeof(x) === typeof(y){ }; This will...
View ArticleNew Post: Checking .NET Type
Hi ravetam, If you set ScriptEngine.AllowReflection to true, you can use Object.GetType for his purpose.if (x.GetType() === y.GetType()) { // do something }Good luck!
View ArticleNew Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.
This is in web and all works fine if I build and w3wp.exe is not running. If I test the code and then I build while the w3wp.exe is running, you will get the above error. Then I kill the w3wp.exe...
View ArticleNew Post: Finding Variable References in Code Snippet
Hi, I have small snippets of javascript code that contain 1-10 references to variables that belong to a 6000+ survey. The vast majority of these items do not have values, and even of the ones that do...
View ArticleNew Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.
Hello scuty, We haven't seen this message before. Is it happening during the build, or after the build when requests come in? A call stack could be very useful. Thanks!
View ArticleNew Post: Finding Variable References in Code Snippet
Greetings! It sounds like you're looking for a JavaScript parsing or code analysis library. Esprima is one that's written in JavaScript. Good luck!
View ArticleNew Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.
It happens if I do this: I build and I open an request and it's all good, then I make a change in the Library (where ClearScript is) and then I debug and I make an request and it dies. This is the call...
View ArticleNew Post: Byte converted to Int
Is there anyway I can create a byte object inside V8? I tried var b = Byte.Parse('162'); But b has been converted to a Number.
View ArticleNew Post: Byte converted to Int
you can add a functionaddhostobject("int", new Func<object, int>(o => Convert.ToInt32(o));
View ArticleNew Post: A procedure imported by 'ClearScriptV8-64.dll' could not be loaded.
Hi scuty, Unfortunately we can't be of much help here. There are no ClearScript frames within the stacks you provided, and the fact that everything works when you restart the web worker indicates that...
View ArticleNew Post: Finding Variable References in Code Snippet
Hi, I ended up finding out that Jint includes a parser that can do what I was looking for. Here is an example of how I used it:List<string> itemRefs = new List<string>(); JavaScriptParser...
View Article