<div dir="ltr">Hi,<div><br></div><div>Is it possible to tell a JSContext to cancel JavaScript code evaluation?</div><div>I found a `<a href="https://github.com/WebKit/webkit/blob/master/Source/JavaScriptCore/API/JSContextRefPrivate.h#L88">JSContextGroupSetExecutionTimeLimit</a>` function, but that&#39;s not what i&#39;m looking for because you have to call it before running any scripts.</div><div><br></div><div>Context: I&#39;m working on a &quot;NodeJS on iOS&quot; app as a WWDC scholarship project and having a &quot;Stop execution&quot; button would be really useful.</div><div><br></div><div>Thanks!</div>







<div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Lukas Kollmer<br></div><div><a href="mailto:lukas.kollmer@gmail.com" target="_blank">lukas.kollmer@gmail.com</a><br></div><div><br></div></div></div>
</div></div>