-
The library doesn't seem to work when producing a self contained, trimmed, executable.
The code of the program is:
```csharp
using YantraJS.Core;
using var ctx = new JSContext();
Console.WriteL…
-
I suggest to add a new overload `LamdbaExpression.CompileToMethod(DynamicMethod)` to supplement the existing method [LamdbaExpression.CompileToMethod() method](https://msdn.microsoft.com/en-us/library…
-
I've summarily checked the codebase and it seems there aren't many options to sandbox the scripts. Is this in the scope of this project?
If so, it would be great to be able to do the following (in de…
lofcz updated
10 months ago
-
1. In .NET 8, we finally get a way to save the Assembly. See [AssemblyBuilderImpl](https://github.com/dotnet/runtime/issues/15704#issuecomment-1644571703)
2. As for the missing of **CompileToMethod**…
-
js host code:
```cs
var engine = new JsModuleContext();
engine.ConsoleEvent += Engine_ConsoleEvent;
engine.Log += Engine_Log;
await engine.RunAsync(rootdir,"te…
-
We have [our comparison benchmarks at Jint repo](https://github.com/sebastienros/jint/blob/main/Jint.Benchmark/EngineComparisonBenchmark.cs) and it's getting a bit tedious to try to run the benchmarks…
lahma updated
10 months ago
-
I found a bug with template literals.
``` `${1 + 1}` ``` outputs 1 instead of 2
Similarly, ```var a = 1; var b = 1; `${a + b}` ``` also outputs 1 instead of 2
-
Hi I'm not sure if this library supports Xamarin but I tried the sample code
```
var context = new JSContext();
// create global function
context["add"] = new JSFunction((in Arguments a) => {
…
-
Repro:
```csharp
using YantraJS.Core;
var context = new JSContext();
var value = context.Eval("""
const PI = Math.PI;
const SOLAR_MASS = 4 * PI * PI;
const DAYS_PER_YEAR = 365.2…
-
The documentation on ClrProxy was outdated but I was able to figure out how use it. The following is an example.
```
using YantraJS.Core;
using YantraJS.Core.Clr;
var synchronizationContext = …