Re: Embedded, Debugger-API: force stop current thread of JS execution
Benjamin Kircher <[email protected]> Thu, 2 Feb 2017 08:39:04 +0100
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
> On 24 Jan 2017, at 22:53, Myk Melez <[email protected]> wrote: > >> I'm looking for something like V8::TerminateExecution in SpiderMonkey. > I'm unsure if it'll work for your particular use case, but SpiderNode implements V8::TerminateExecution by calling JS_RequestInterruptCallback and then returning false from the callback: > > https://github.com/mozilla/spidernode/blob/fa6dd41/deps/spidershim/src/v8isolate.cc#L342-L347 > https://github.com/mozilla/spidernode/blob/fa6dd41/deps/spidershim/src/v8isolate.cc#L107-L109 > > -myk Didn’t know about SpiderNode before. It is a great resource for comparing SpiderMonkey JS API to V8 API. Thanks! _______________________________________________ dev-tech-js-engine mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine