| Index: src/inspector/v8-runtime-agent-impl.cc
|
| diff --git a/src/inspector/v8-runtime-agent-impl.cc b/src/inspector/v8-runtime-agent-impl.cc
|
| index 17c8a7b1accbd2507f5fb34ea15a76ba284c9e98..7d8c246e7f50be06bd34ec1e6ee9c90bfacf33b9 100644
|
| --- a/src/inspector/v8-runtime-agent-impl.cc
|
| +++ b/src/inspector/v8-runtime-agent-impl.cc
|
| @@ -521,6 +521,7 @@ Response V8RuntimeAgentImpl::runIfWaitingForDebugger() {
|
| Response V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(bool enabled) {
|
| m_state->setBoolean(V8RuntimeAgentImplState::customObjectFormatterEnabled,
|
| enabled);
|
| + if (!m_enabled) return Response::Error("Runtime agent is not enabled");
|
| m_session->setCustomObjectFormatterEnabled(enabled);
|
| return Response::OK();
|
| }
|
| @@ -678,6 +679,7 @@ Response V8RuntimeAgentImpl::disable() {
|
| m_state->setBoolean(V8RuntimeAgentImplState::runtimeEnabled, false);
|
| m_inspector->disableStackCapturingIfNeeded();
|
| m_session->discardInjectedScripts();
|
| + m_session->setCustomObjectFormatterEnabled(false);
|
| reset();
|
| m_inspector->client()->endEnsureAllContextsInGroup(
|
| m_session->contextGroupId());
|
|
|