ports/devel/electron27/files/patch-electron_shell_common_node__bindings.cc
Hiroki Tagato 44e85273f9 devel/electron27: update to 27.3.1
Changelog: https://github.com/electron/electron/releases/tag/v27.3.1

Reported by:	GitHub (watch releases)
MFH:		2024Q1
Security:	13a8c4bf-cb2b-48ec-b49c-a3875c72b3e8
2024-02-02 16:15:12 +09:00

29 lines
1.2 KiB
C++

--- electron/shell/common/node_bindings.cc.orig 2024-01-29 17:52:10 UTC
+++ electron/shell/common/node_bindings.cc
@@ -38,7 +38,7 @@
#include "third_party/blink/renderer/bindings/core/v8/v8_initializer.h" // nogncheck
#include "third_party/electron_node/src/debug_utils.h"
-#if !IS_MAS_BUILD()
+#if !IS_MAS_BUILD() && !BUILDFLAG(IS_BSD)
#include "shell/common/crash_keys.h"
#endif
@@ -153,7 +153,7 @@ void V8FatalErrorCallback(const char* location, const
void V8FatalErrorCallback(const char* location, const char* message) {
LOG(ERROR) << "Fatal error in V8: " << location << " " << message;
-#if !IS_MAS_BUILD()
+#if !IS_MAS_BUILD() && !BUILDFLAG(IS_BSD)
electron::crash_keys::SetCrashKey("electron.v8-fatal.message", message);
electron::crash_keys::SetCrashKey("electron.v8-fatal.location", location);
#endif
@@ -446,7 +446,7 @@ void NodeBindings::Initialize(v8::Local<v8::Context> c
TRACE_EVENT0("electron", "NodeBindings::Initialize");
// Open node's error reporting system for browser process.
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Get real command line in renderer process forked by zygote.
if (browser_env_ != BrowserEnvironment::kBrowser)
ElectronCommandLine::InitializeFromCommandLine();