1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-09 13:29:24 -04:00
ports/devel/electron22/files/patch-electron_shell_common_node__bindings.cc
2023-05-05 11:18:49 +09:00

29 lines
1.2 KiB
C++

--- electron/shell/common/node_bindings.cc.orig 2023-05-03 07:56:25 UTC
+++ electron/shell/common/node_bindings.cc
@@ -40,7 +40,7 @@
#include "third_party/blink/renderer/bindings/core/v8/v8_initializer.h" // nogncheck
#include "third_party/electron_node/src/debug_utils.h"
-#if !defined(MAS_BUILD)
+#if !defined(MAS_BUILD) && !defined(OS_BSD)
#include "shell/common/crash_keys.h"
#endif
@@ -157,7 +157,7 @@ bool g_is_initialized = false;
void V8FatalErrorCallback(const char* location, const char* message) {
LOG(ERROR) << "Fatal error in V8: " << location << " " << message;
-#if !defined(MAS_BUILD)
+#if !defined(MAS_BUILD) && !defined(OS_BSD)
electron::crash_keys::SetCrashKey("electron.v8-fatal.message", message);
electron::crash_keys::SetCrashKey("electron.v8-fatal.location", location);
#endif
@@ -428,7 +428,7 @@ void NodeBindings::Initialize() {
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();