From b5da4a64d03c8901c77823ee36162dd22a26d32b Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:28:43 -0800 Subject: [PATCH] Patch nan to fix Electron 29 build --- patches/nan+2.18.0.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/nan+2.18.0.patch diff --git a/patches/nan+2.18.0.patch b/patches/nan+2.18.0.patch new file mode 100644 index 000000000..555aeb084 --- /dev/null +++ b/patches/nan+2.18.0.patch @@ -0,0 +1,28 @@ +diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h +index 2a68349..7576469 100644 +--- a/node_modules/nan/nan.h ++++ b/node_modules/nan/nan.h +@@ -2511,6 +2511,7 @@ inline void SetPrototypeMethod( + + //=== Accessors and Such ======================================================= + ++/* + NAN_DEPRECATED inline void SetAccessor( + v8::Local tpl + , v8::Local name +@@ -2557,6 +2558,7 @@ NAN_DEPRECATED inline void SetAccessor( + #endif + ); + } ++*/ + + inline void SetAccessor( + v8::Local tpl +@@ -2596,7 +2598,6 @@ inline void SetAccessor( + , getter_ + , setter_ + , obj +- , settings + , attribute + ); + }