ports/devel/electron34/files/patch-electron_shell_common_node__bindings.cc
Hiroki Tagato 496e45c9b4 devel/electron34: update to 34.4.1
Changelog:
- https://github.com/electron/electron/releases/tag/v34.3.4
- https://github.com/electron/electron/releases/tag/v34.4.0
- https://github.com/electron/electron/releases/tag/v34.4.1

Reported by:	GitHub (watch releases)
Security:	964aa5da-f094-47fe-9ebd-2142f9157440
Security:	01a7e1e1-d249-4dd8-9a4a-ef95b5747afb
2025-03-30 05:14:56 +09:00

30 lines
1.2 KiB
C++

--- electron/shell/common/node_bindings.cc.orig 2025-03-26 14:46:58 UTC
+++ electron/shell/common/node_bindings.cc
@@ -45,7 +45,7 @@
#include "third_party/electron_node/src/debug_utils.h"
#include "third_party/electron_node/src/module_wrap.h"
-#if !IS_MAS_BUILD()
+#if !IS_MAS_BUILD() && !BUILDFLAG(IS_BSD)
#include "shell/common/crash_keys.h"
#endif
@@ -159,7 +159,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
@@ -535,7 +535,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();