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
In version 7.4.5 when the limit specified by the MaxRuntimeHeapSize property of V8ScriptEngine class is exceeded, an “ScriptEngineException: The V8 runtime has exceeded its memory limit“ exception is no longer thrown. You can check this by using the following console application:
usingMicrosoft.ClearScript.V8;namespaceTestClearScriptV8{classProgram{staticvoidMain(string[]args){conststringinput=@"var arr = [];for (var i = 0; i < 10000; i++) { arr.push('Current date: ' + new Date());}";using(varengine=newV8ScriptEngine{MaxRuntimeHeapSize=newUIntPtr(640*1024)}){engine.Execute(input);}}}}