Edited Issue: Issue concatenating java string and c sharp string [55]
This is in the basic java engine (not v8)I have some basic code here (in javascript):```var accountstr = host.newVar(CLRString);if (!downloadInfo.TryGetValue("Account", accountstr.out)){ accountstr =...
View ArticleNew Post: Dynamic properties added to DynamicObject are undefined
This is awesome. Works perfectly, but you should considder updating the documentation with it. Great project!
View ArticleNew Post: javascript blob
What method would be best to get a javascript blob object into a .net byte array?
View ArticleNew Post: javascript blob
Hi Pretzelfisch, The Blob object is part of the Web API. It isn't part of the JavaScript standard, and ClearScript doesn't provide it. Did you mean ArrayBuffer by any chance? Thanks!
View ArticleNew Post: javascript blob
I think I can get the blob to a ArrayBuffer, will that map to a byte array?
View ArticleCreated Unassigned: Calling a function with a parameter in JScriptEngine [56]
I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...
View ArticleCommented Unassigned: Calling a function with a parameter in JScriptEngine [56]
I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...
View ArticleNew Post: javascript blob
Hi again, Generally speaking, ClearScript doesn't convert script objects to host objects automatically. Instead, it aims to allow hosts to manipulate script objects directly. Here's a sample class that...
View ArticleCommented Unassigned: Calling a function with a parameter in JScriptEngine [56]
I initialize my engine with the following lines:``` Dim engine As JScriptEngine engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging) engine.AddHostType("Console", GetType(Console))```I...
View ArticleNew Post: javascript blob
Hi, How to evaluate an expression and validate it using the ClearScript.
View ArticleNew Post: javascript blob
Hello! You can call ScriptEngine.Evaluate() to evaluate a script code expression. What kind of validation are you looking for? Cheers!
View ArticleNew Post: Problem using V8RuntimeConstraints
I'm running into a problem trying to use V8RuntimeConstraints when creating a V8ScriptEngine, and I'm not doing anything weird so I'm guessing there must be something wrong with my project. I'm posting...
View ArticleNew Post: Problem using V8RuntimeConstraints
Greetings! We ran a quick test using your V8RuntimeConstraints configuration. It turns out that those numbers are too tight for V8 to get off the ground, much less run any script code. It exceeds those...
View ArticleNew Post: javascript blob
Hi Expression whether true or false ?? by using if condition. like a javascript as below.<html><body><a id="demo"></a><script> var a=1; var result; if(1==1) { result=true;...
View ArticleNew Post: javascript blob
Sure, here's a simple C# example:using (var engine = new V8ScriptEngine()) { if (Convert.ToBoolean(engine.Evaluate("Math.PI > 3.0"))) { Console.WriteLine("Pi is greater than 3!"); } }As you can see,...
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: javascript blob
Hi, Thank you. Can you give some example to access the function in CleaeScript as in javaScript like function myfunction( ){ }
View ArticleNew Post: javascript blob
Suppose you've defined a JavaScript function like this: engine.Execute("function myFunction(a, b, c) { return a * b + c; }");Here are a few ways to execute it from the host and print out the return...
View Article