Discussion:
[webkit-help] [JavaScriptCore] JSContext stop evaluation
Lukas Kollmer
2016-12-27 10:52:24 UTC
Permalink
Hi,

Is it possible to tell a JSContext to cancel JavaScript code evaluation?
I found a `JSContextGroupSetExecutionTimeLimit
<https://github.com/WebKit/webkit/blob/master/Source/JavaScriptCore/API/JSContextRefPrivate.h#L88>`
function, but that's not what i'm looking for because you have to call it
before running any scripts.

Context: I'm working on a "NodeJS on iOS" app as a WWDC scholarship project
and having a "Stop execution" button would be really useful.

Thanks!
--
Lukas Kollmer
***@gmail.com
Loading...