Hi Stephan, you should return the empty handle to propagate out the exception. There is a bug in the exception propagation code currently which means that if you have calls from JS to C to JS to C the propagation of the exception might not work correctly. If you hit that case, the workaround is to rethrow the exception (so use the V8 api to throw sentry.Exception() and then return the empty handle).
-- Mads On Sat, Mar 14, 2009 at 10:16 AM, Stephan Beal <[email protected]> wrote: > > Hi, all! > > Is this legal: > > TryCatch sentry; > Handle<Value> rc = ...; > if( rc.IsEmpty() ) > { > ... do something ... > return sentry.Exception(); > } > > is that the proper way to propagate the exception, or do i return the > empty rc object? > > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
