Skip to content

Commit 7458e5a

Browse files
authored
chore: use modern Node.js init API on lower version (#34)
The referenced PR has been backported, so we can update the version and its comment here.
1 parent 5d6298e commit 7458e5a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

resources/main-template.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
using namespace node;
2020
using namespace v8;
2121

22-
// This version can potentially be lowered if/when
23-
// https://github.com/nodejs/node/pull/44121 is backported.
24-
#if !NODE_VERSION_AT_LEAST(19, 0, 0)
22+
// 18.11.0 is the minimum version that has https://github.com/nodejs/node/pull/44121
23+
#if !NODE_VERSION_AT_LEAST(18, 11, 0)
2524
#define USE_OWN_LEGACY_PROCESS_INITIALIZATION 1
2625
#endif
2726

0 commit comments

Comments
 (0)