MM-56996 Fix nan dependency (#2966)
* Fix nan dependency * Bump electron-mocha * Upgrade Playwright, manage nan fix with patch-package * Automate package patching in postinstall step
This commit is contained in:
24
patches/nan+2.18.0.patch
Normal file
24
patches/nan+2.18.0.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h
|
||||
index 2a68349..9c75907 100644
|
||||
--- a/node_modules/nan/nan.h
|
||||
+++ b/node_modules/nan/nan.h
|
||||
@@ -2550,7 +2550,9 @@ NAN_DEPRECATED inline void SetAccessor(
|
||||
, getter_
|
||||
, setter_
|
||||
, obj
|
||||
+#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
|
||||
, settings
|
||||
+#endif
|
||||
, attribute
|
||||
#if (NODE_MODULE_VERSION < NODE_16_0_MODULE_VERSION)
|
||||
, signature
|
||||
@@ -2596,7 +2598,9 @@ inline void SetAccessor(
|
||||
, getter_
|
||||
, setter_
|
||||
, obj
|
||||
+#if !defined(V8_MAJOR_VERSION) || V8_MAJOR_VERSION < 12
|
||||
, settings
|
||||
+#endif
|
||||
, attribute
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user