pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
887 stars 119 forks source link

How to implement the function to stop execution in script #146

Closed gellston closed 2 years ago

gellston commented 3 years ago

Hi V8pp Team.

currently i really need the function to stop execution in script side manually (not throw) how to implement this function?

thanks.

pmed commented 3 years ago

Hi,

you could try to search for some terminate function in the V8 API, and then to expose such a function to JavaScript script.