On Thu, Feb 11, 2016 at 5:06 AM, Zac Hansen <[email protected]> wrote:
> I want to be able to stop the current javascript execution when a certain
> criteria is met from within a C++ function that the triggering javascript
> cannot catch.
>
> I want this information to propagate back to the c++ invoking the code
> somehow and have the data available to it, though.
>
> If I had to envision what I want, it would be
> isolate->ThrowException(some_data,
> special_magic_flag_so_javascript_does_not_see_this); but I'm open to other
> solutions.
>
> --Zac
>
> This question was asked back in 2012, but I don't see an answer.
>
> http://markmail.org/message/hee7rhmh4dk6yspx

You could use v8::Isolate::TerminateExecution() for that.  Check with
v8::Isolate::IsExecutionTerminating() or
v8::TryCatch::HasTerminated().

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to