Lukas Kollmer
2016-12-27 10:52:24 UTC
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!
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
Lukas Kollmer
***@gmail.com