This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+14
View File
@@ -0,0 +1,14 @@
// These macros weren't added until v8 version 4.4
#ifndef V8_MAJOR_VERSION
#if NODE_MODULE_VERSION <= 11
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 14
#elif V8_MAJOR_VERSION <= 14
#define V8_MAJOR_VERSION 3
#define V8_MINOR_VERSION 28
#else
#error v8 version macros missing
#endif
#endif
#define V8_AT_LEAST(major, minor) (V8_MAJOR_VERSION > major || (V8_MAJOR_VERSION == major && V8_MINOR_VERSION >= minor))