You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var engine = new Engine();
var parser = new JavaScriptParser(code);
var script = parser.ParseScript();
engine.Execute(script); //<--- NullReferenceException
Here is the js code I used:
let arr = [];
for (let i = 0; i < 10000; i++) arr.push(i);
for (let i=0;i<10000;i++) arr.splice(0, 1);
What happens?
I get a NullReferenceException in the line engine.Execute(script);
Note:
This only happens with large arrays (if I enter 1000 instead of 10000 it doesn't happen)
In case you can't reproduce the bug try adding a 0 to the 10000
The text was updated successfully, but these errors were encountered:
Jint version: 3.0.0-beta-1828
Here is my C# code:
Here is the js code I used:
What happens?
I get a NullReferenceException in the line
engine.Execute(script);
Here is the full stack trace from Visual Studio
Note:
This only happens with large arrays (if I enter 1000 instead of 10000 it doesn't happen)
In case you can't reproduce the bug try adding a 0 to the 10000
The text was updated successfully, but these errors were encountered: