Skip to content

Commit c10988d

Browse files
committed
src: use non-deprecated V8 inspector API
PR-URL: #44741 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 53f73d1 commit c10988d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/inspector_agent.cc

+4-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
217217
bool prevent_shutdown)
218218
: delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown),
219219
retaining_context_(false) {
220-
session_ = inspector->connect(CONTEXT_GROUP_ID, this, StringView());
220+
session_ = inspector->connect(CONTEXT_GROUP_ID,
221+
this,
222+
StringView(),
223+
V8Inspector::ClientTrustLevel::kFullyTrusted);
221224
node_dispatcher_ = std::make_unique<protocol::UberDispatcher>(this);
222225
tracing_agent_ =
223226
std::make_unique<protocol::TracingAgent>(env, main_thread_);

0 commit comments

Comments
 (0)