I am not executing any scripts. I'm am calling ThrowException from C++. I tried using TryCatch but it only appears to capture exceptions within a script. HasCaught() returned false.
On Dec 2, 2010, at 3:20 AM, Ben Noordhuis wrote: > On Thu, Dec 2, 2010 at 12:17, naturalethic <[email protected]> wrote: >> I see that internal::Top has methods to determine pending_exception or >> scheduled_exception, but these are not available outside. I have a >> method, that calls another method that calls ThrowException. I want >> to determine within the parent function whether ThrowException has >> been called. > > You're probably looking for TryCatch::HasCaught(). > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
