Patch nan to fix Electron 29 build

This commit is contained in:
Fedor Indutny 2024-02-22 14:28:43 -08:00 committed by GitHub
parent 96b3413feb
commit b5da4a64d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

28
patches/nan+2.18.0.patch Normal file
View file

@ -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<v8::ObjectTemplate> tpl
, v8::Local<v8::String> name
@@ -2557,6 +2558,7 @@ NAN_DEPRECATED inline void SetAccessor(
#endif
);
}
+*/
inline void SetAccessor(
v8::Local<v8::ObjectTemplate> tpl
@@ -2596,7 +2598,6 @@ inline void SetAccessor(
, getter_
, setter_
, obj
- , settings
, attribute
);
}