diff options
Diffstat (limited to 'deps/v8/include/v8.h')
-rw-r--r-- | deps/v8/include/v8.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index ef0bda63f..8ae075797 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -4187,6 +4187,17 @@ class V8_EXPORT Isolate { static Isolate* GetCurrent(); /** + * Custom callback used by embedders to help V8 determine if it should abort + * when it throws and no internal handler can catch the exception. + * If FLAG_abort_on_uncaught_exception is true, then V8 will abort if either: + * - no custom callback is set. + * - the custom callback set returns true. + * Otherwise it won't abort. + */ + typedef bool (*abort_on_uncaught_exception_t)(Isolate*); + void SetAbortOnUncaughtException(abort_on_uncaught_exception_t callback); + + /** * Methods below this point require holding a lock (using Locker) in * a multi-threaded environment. */ |