File: drop_napi_experimental.patch

package info (click to toggle)
node-addon-api 5.0.0-6%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,920 kB
  • sloc: cpp: 7,531; ansic: 5,297; javascript: 4,654; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Avoid breakage with latest NAPI change.
 This has been tested with nodejs versions in debian bookworm,
 before and after nodejs 18.20.4.
Forwarded: not-needed, upstream removed the NAPI_EXPERIMENTAL flag
Last-Update: 2025-05-28
Author: Jérémy Lal <kapouer@melix.org>
--- a/test/bigint.cc
+++ b/test/bigint.cc
@@ -1,6 +1,7 @@
 #if (NAPI_VERSION > 5)
-
+#if (NAPI_VERSION < 9)
 #define NAPI_EXPERIMENTAL
+#endif
 #include "napi.h"
 
 #include "test_helper.h"