ClearScript Library
ClearScript Library
>With jint every statement, variable creation, function call, etc counts as a statement... Because many [JavaScript statements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements) are _compound_ – that is, executing one could involve executing any number of...
>It's hard to implement any logic in the ContinuationCallback since I can't have metrics about CPU usage or anything related to the performance of the script execution.. Well, you might...
Hi @lucasoares, >When I first read your last answer, I thought there was a clearscript class to measure script total processor time, but you were saying to use dotnet's own...
>If each engine instance provide any cpu-related metric, then I can throttle the number of executions of any specific user I have, or even block his scripts from being executed......
Please feel free to reopen this issue if you have additional thoughts on this topic.
Hi @simontom, How about something like this: ```csharp engine.Execute(@"(() => { const AsyncFunction = (async () => {}).constructor; const ctor = (function () { throw new Error('Function constructors are disabled');...
Please reopen this issue if you have additional thoughts or questions about this topic. Thanks!
Hi @flat-eric147, >I suspect ClearScrip does not support this new/different debug commands coming from vscode ClearScript's role in V8 debugging is limited to providing a communication channel between V8 and...
Hi @zvrba, >It would be nice to have an option that writes out a warning or even throws exception when an `internal` type is given to `AddHostType` or `AddHostObject`. We...
Hi @zvrba, >How about the following approach: what if `ScriptEngine` exposed a built-in global method such as `__ExplainVisibility(obj)` that, given an object instance, could give a member-by-member explanation of why...