Index: src/inspector/v8-console.cc |
diff --git a/src/inspector/v8-console.cc b/src/inspector/v8-console.cc |
index 8b1ab62c41c1437827c1d36b990a74223ef1f03c..a15444882aba66c8fe847cd0666cededf48679d2 100644 |
--- a/src/inspector/v8-console.cc |
+++ b/src/inspector/v8-console.cc |
@@ -275,14 +275,7 @@ void V8Console::Assert(const v8::debug::ConsoleCallArguments& info) { |
arguments.push_back( |
toV8String(m_inspector->isolate(), String16("console.assert"))); |
helper.reportCall(ConsoleAPIType::kAssert, arguments); |
- |
- // TODO(dgozman): only break once, not per each session. |
- helper.forEachSession([](V8InspectorSessionImpl* session) { |
- if (session->debuggerAgent()->enabled()) { |
- session->debuggerAgent()->breakProgramOnException( |
- protocol::Debugger::Paused::ReasonEnum::Assert, nullptr); |
- } |
- }); |
+ m_inspector->debugger()->breakProgramOnAssert(helper.groupId()); |
} |
void V8Console::MarkTimeline(const v8::debug::ConsoleCallArguments& info) { |