src: use non-deprecated V8 inspector API

PR-URL: https://github.com/nodejs/node/pull/44741
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Michaël Zasso 2022-05-14 14:16:56 +02:00
parent 53f73d1cfe
commit c10988db44
No known key found for this signature in database
GPG key ID: 770F7A9A5AE15600

View file

@ -217,7 +217,10 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
bool prevent_shutdown) bool prevent_shutdown)
: delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown), : delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown),
retaining_context_(false) { 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<protocol::UberDispatcher>(this); node_dispatcher_ = std::make_unique<protocol::UberDispatcher>(this);
tracing_agent_ = tracing_agent_ =
std::make_unique<protocol::TracingAgent>(env, main_thread_); std::make_unique<protocol::TracingAgent>(env, main_thread_);