Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/isolate.h

Issue 1375933003: Add SetAbortOnUncaughtExceptionCallback API (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 035b4b363c2c0c021d9f789215ada2b79e436955..0ebb9a802b85822dcaf197b6113fc60661de108f 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -655,6 +655,10 @@ class Isolate {
int frame_limit,
StackTrace::StackTraceOptions options);
+ typedef bool (*AbortOnUncaughtExceptionCallback)(v8::Isolate*);
Michael Starzinger 2015/10/01 16:34:38 The "v8::AbortOnUncaughtExceptionCallback" typedef
julien.gilli 2015/10/01 19:18:11 Acknowledged.
julien.gilli 2015/10/05 17:24:25 Done.
+ void SetAbortOnUncaughtExceptionCallback(
+ AbortOnUncaughtExceptionCallback callback);
+
enum PrintStackMode { kPrintStackConcise, kPrintStackVerbose };
void PrintCurrentStackTrace(FILE* out);
void PrintStack(StringStream* accumulator,
@@ -1325,6 +1329,8 @@ class Isolate {
std::set<Cancelable*> cancelable_tasks_;
+ AbortOnUncaughtExceptionCallback abort_on_uncaught_exception_callback_;
+
friend class ExecutionAccess;
friend class HandleScopeImplementer;
friend class OptimizingCompileDispatcher;

Powered by Google App Engine
This is Rietveld 408576698