ClearScript Library
ClearScript Library
@AudriusButkevicius We've pushed the change to the main branch. Please let us know if it works for you. Thanks!
Hi @AudriusButkevicius, >This sort of example still prevents unloading: Well, that's unfortunate. The root problem is that .NET's dynamic infrastructure – the subsystem that supports C#'s [`dynamic`](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/using-type-dynamic) type and similar...
Hi @AudriusButkevicius, >Uff, that's disappointing that a runtime feature breaks another runtime feature. Indeed. We were going to report this, but the underlying issue is already on the books and...
Hi @AudriusButkevicius, >Ok, I think I have a patch removing all uses of .Script internally in the engine Yep, we're doing that as well. This issue has triggered an audit...
Hi @AudriusButkevicius, >Is there an easy way to call Array.from from C#? Sure: ``` C# var hostArray = new object[] { 123, "foo", 456.789, "baz" }; var arrayCtor = (ScriptObject)engine.Global.GetProperty("Array");...
Hi @AudriusButkevicius, Oops, sorry, we forgot to address one of your comments: >The problem is that I need a global function that supports multiple overloads. You can do the following:...
Hi @AudriusButkevicius, >Also, I wonder if the engine has DisableDynamicBinding=true, throwing on accessing ScriptException or Script might make sense? Our understanding is that it wouldn't be effective. Invoking a member...
[Version 7.3.2](https://github.com/microsoft/ClearScript/releases/tag/7.3.2) addresses this issue by minimizing dynamic infrastructure engagement throughout ClearScript and adding [`DisableDynamicBinding`](https://microsoft.github.io/ClearScript/Reference/html/P_Microsoft_ClearScript_ScriptEngine_DisableDynamicBinding.htm) and [`ScriptExceptionAsObject`](https://microsoft.github.io/ClearScript/Reference/html/P_Microsoft_ClearScript_IScriptEngineException_ScriptExceptionAsObject.htm). Note that the [`cast`](https://microsoft.github.io/ClearScript/Reference/html/M_Microsoft_ClearScript_HostFunctions_cast__1.htm) host function still uses `dynamic` as a last resort...
Hi @KurtGokhan, Thanks so much for contributing! At the moment we're focused on the next point release, so we'll evaluate Android support a bit later – most likely toward the...
Hi @jeypevillarubia, Do you see any `.log` files in `C:\ClearScript\V8\build\v8`? Thanks!