Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 529ca51f89ce2bd0af9201d6269e750c92c1008b..508431a6f4b64e3ef085e0e067911bf27eece951 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -8805,6 +8805,15 @@ MaybeLocal<Array> DebugInterface::GetInternalProperties(Isolate* isolate, |
return Debug::GetInternalProperties(isolate, value); |
} |
+void DebugInterface::ChangeBreakOnException(Isolate* isolate, |
+ ExceptionBreakState type) { |
+ i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
+ internal_isolate->debug()->ChangeBreakOnException( |
+ i::BreakException, type == BreakOnAnyException); |
+ internal_isolate->debug()->ChangeBreakOnException(i::BreakUncaughtException, |
+ type != NoBreakOnException); |
+} |
+ |
Local<String> CpuProfileNode::GetFunctionName() const { |
const i::ProfileNode* node = reinterpret_cast<const i::ProfileNode*>(this); |
i::Isolate* isolate = node->isolate(); |