C# bindings for Fabrice Bellard's QuickJS Javascript Engine.
C# bindings for QuickJS, a JavaScript interpreter written in C by Fabrice Bellard and Charlie Gordon.
Warning: At present, both the original project quickjs
and this project are still in the early stage of development. Please use this project carefully in the production environment.
static void Main()
{
using (QuickJSRuntime runtime = new QuickJSRuntime())
using (QuickJSContext context = runtime.CreateContext())
{
object result = context.Eval("2 + 2", "script.js", JSEvalFlags.Global);
Console.WriteLine("2 + 2 = {0}", result);
}
}