v8_api_advance_api_deprecation.patch 1.1 KB

1234567891011121314151617181920212223
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: deepak1556 <[email protected]>
  3. Date: Fri, 26 Aug 2022 00:03:44 +0900
  4. Subject: v8: [api] Advance API deprecation
  5. Refs https://chromium-review.googlesource.com/c/v8/v8/+/3702449
  6. This can be removed when Electron upgrades to Node.js v20.
  7. diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
  8. index 4c9f7f636aeeb19a87150ac5a05e28159503f051..6f3821247f7a1b9e4615c2f21d4098114e64d798 100644
  9. --- a/src/inspector_agent.cc
  10. +++ b/src/inspector_agent.cc
  11. @@ -219,7 +219,8 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
  12. bool prevent_shutdown)
  13. : delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown),
  14. retaining_context_(false) {
  15. - session_ = inspector->connect(CONTEXT_GROUP_ID, this, StringView());
  16. + session_ = inspector->connect(
  17. + CONTEXT_GROUP_ID, this, StringView(),V8Inspector::kFullyTrusted);
  18. node_dispatcher_ = std::make_unique<protocol::UberDispatcher>(this);
  19. tracing_agent_ =
  20. std::make_unique<protocol::TracingAgent>(env, main_thread_);