ChakraCore.NET icon indicating copy to clipboard operation
ChakraCore.NET copied to clipboard

TerminateRunningScript with the Hosting API?

Open kameko opened this issue 7 years ago • 1 comments

I can't seem to find a way to set up the runtime with the AllowScriptInterrupt attribute using the new Hosting API, and it always throws "Cannot disable execution" when calling TerminateRunningScript otherwise. Even worse, I'm on .NET Core which doesn't seem to allow hard-aborting threads. Is there anything I can do to kill running code?

kameko avatar Nov 20 '18 03:11 kameko

please try the sample project "https://github.com/JohnMasen/ChakraCore.NET/tree/master/source/PauseEngine" .

JohnMasen avatar Dec 03 '18 13:12 JohnMasen