Index: src/inspector/v8-debugger.cc |
diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc |
index 791518accc49929add3c0d6d9d0099b7078c92c0..3a2fc89f0039869b49a3c5cef4f4b92eab0017a6 100644 |
--- a/src/inspector/v8-debugger.cc |
+++ b/src/inspector/v8-debugger.cc |
@@ -310,26 +310,7 @@ void V8Debugger::setBreakpointsActivated(bool activated) { |
UNREACHABLE(); |
return; |
} |
- v8::HandleScope scope(m_isolate); |
- v8::Local<v8::Context> context = debuggerContext(); |
- v8::Context::Scope contextScope(context); |
- |
- v8::Local<v8::Object> info = v8::Object::New(m_isolate); |
- bool success = false; |
- success = info->Set(context, toV8StringInternalized(m_isolate, "enabled"), |
- v8::Boolean::New(m_isolate, activated)) |
- .FromMaybe(false); |
- DCHECK(success); |
- USE(success); |
- v8::Local<v8::Function> setBreakpointsActivated = |
- v8::Local<v8::Function>::Cast( |
- m_debuggerScript.Get(m_isolate) |
- ->Get(context, toV8StringInternalized(m_isolate, |
- "setBreakpointsActivated")) |
- .ToLocalChecked()); |
- v8::debug::Call(debuggerContext(), setBreakpointsActivated, info) |
- .ToLocalChecked(); |
- |
+ v8::debug::SetBreakPointsActive(m_isolate, activated); |
m_breakpointsActivated = activated; |
} |