91f62ae73f
refactor: only override V8Platform::CreateJob
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
Date: Fri, 26 Aug 2022 00:03:44 +0900
|
|
Subject: v8: [api] Advance API deprecation
|
|
|
|
Refs https://chromium-review.googlesource.com/c/v8/v8/+/3702449
|
|
|
|
This can be removed when Electron upgrades to Node.js v20.
|
|
|
|
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
|
|
index 1abf6801e0544b14dd26f0b96536bd78c5b01679..93e339602800a21726c9414bf2ebe9a2e5517a3b 100644
|
|
--- a/src/inspector_agent.cc
|
|
+++ b/src/inspector_agent.cc
|
|
@@ -219,7 +219,8 @@ 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::kFullyTrusted);
|
|
node_dispatcher_ = std::make_unique<protocol::UberDispatcher>(this);
|
|
tracing_agent_ =
|
|
std::make_unique<protocol::TracingAgent>(env, main_thread_);
|