Hi All, I have an application with a mix of native and JavaScript functions. Sometimes functions are executed asynchronously on the same thread using the same Context object. When I call a JavaScript function from a native function I use a scoped TryCatch object in order to catch exceptions. If I ReThrow() the exception I don't want to make any additional calls on that same Context object until the exception has been handled in the originating JavaScript code. For example, consider the following call stacks:
stack 1: JS function 1 (catches exception) -> native function 1 (ReThrow() exception) -> JS function 2 (throws exception) stack 2: native function 2 -> JS function 3 This leads me to the following questions: 1. Is it possible that "stack 1" execution may be interrupted such that "stack 2" could execute before "stack 1" has completely handled the exception? 2. If so, is there a way to test in "native function 2" if the context currently has a pending exception before executing "JS function 3" on the same Context? Thanks, Marshall -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
