Re: Embedded, Debugger-API: force stop current thread of JS execution
Myk Melez <[email protected]> Tue, 24 Jan 2017 13:53:04 -0800
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
> Benjamin Kircher <mailto:[email protected]> > 2017 January 24 at 13:30 > 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