--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
v8::ThrowException schedules an exception to be thrown when returning to JavaScript. At the point where you ask if it has been caught it has not been thrown yet.
On Thu, Jul 21, 2011 at 9:08 AM, Mads Sig Ager <ag...@chromium.org> wrote:v8::ThrowException schedules an exception to be thrown when returning to JavaScript. At the point where you ask if it has been caught it has not been thrown yet.i see. Thank you for that clarification.The return value of ThrowException(): is it Undefined() or an Empty handle? i recall (perhaps incorrectly) reading both descriptions over the years.
--
v8::ThrowException schedules an exception to be thrown when returning to JavaScript. At the point where you ask if it has been caught it has not been thrown yet.
On Thu, Jul 21, 2011 at 9:08 AM, Mads Sig Ager <ag...@chromium.org> wrote:v8::ThrowException schedules an exception to be thrown when returning to JavaScript. At the point where you ask if it has been caught it has not been thrown yet.A slight clarification: does "returning to JS" mean returning to a higher scope than the TryCatch, or calling back into v8 (perhaps in a deeper scope than the TryCatch, where the TC is still alive)?
--
It means actually returning to a JavaScript activation on the stack. Returning to other C++ code will not throw the exception.