This project has moved. For the latest updates, please go here.
1

Closed

[BUG] [V8] Crash during IEnumerable iteration

description

The following script crashes consistently when using 3 iterations in the outer for loop, but runs fine when using 2 iterations.
for (var i = 0; i < 3 /*2 is fine*/; ++i)
{
    for (var test of list)
    {
    }
}
where list is a List<int>. Necessary initialization code is:
var engine = new V8ScriptEngine();
var list = new List<int>();
engine.AddHostObject("list", list);
engine.Execute(...);
Spreading out the enumerator accesses over multiple engine.Execute calls does not seem to cause the problem.
Closed Feb 8 at 3:38 PM by ClearScript

comments

ClearScript wrote Jan 29 at 1:19 PM

Hello! This appears to be the same issue that was reported here. Please try ClearScript 5.4.8. If you're using a NuGet package that hasn't been updated, we recommend that you contact its owners or build ClearScript yourself using the procedure outlined in the ReadMe. Thanks!