From c10988db442b804e509e64cf0bd627e1649b898d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sat, 14 May 2022 14:16:56 +0200 Subject: [PATCH] src: use non-deprecated V8 inspector API PR-URL: https://github.com/nodejs/node/pull/44741 Reviewed-By: Ben Noordhuis Reviewed-By: Jiawen Geng Reviewed-By: James M Snell --- src/inspector_agent.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index 9ee779fb597b42..ffd5c21f836ac6 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -217,7 +217,10 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel, bool prevent_shutdown) : delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown), retaining_context_(false) { - session_ = inspector->connect(CONTEXT_GROUP_ID, this, StringView()); + session_ = inspector->connect(CONTEXT_GROUP_ID, + this, + StringView(), + V8Inspector::ClientTrustLevel::kFullyTrusted); node_dispatcher_ = std::make_unique(this); tracing_agent_ = std::make_unique(env, main_thread_);