Skip to content

Commit 690789d

Browse files
committed
src: remove unconditional NAPI_EXPERIMENTAL in node.h
1 parent 340e619 commit 690789d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

node.gyp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,9 @@
890890
'NODE_ARCH="<(target_arch)"',
891891
'NODE_PLATFORM="<(OS)"',
892892
'NODE_WANT_INTERNALS=1',
893+
# Define NAPI_EXPERIMENTAL to enable Node-API experimental function symbols being exposed.
894+
'NAPI_EXPERIMENTAL=1',
895+
'NODE_API_EXPERIMENTAL_NO_WARNING=1',
893896
# Warn when using deprecated V8 APIs.
894897
'V8_DEPRECATION_WARNINGS=1',
895898
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',

src/node.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
#include "v8-platform.h" // NOLINT(build/include_order)
7777
#include "node_version.h" // NODE_MODULE_VERSION
7878

79-
#define NAPI_EXPERIMENTAL
8079
#include "node_api.h"
8180

8281
#include <functional>

0 commit comments

Comments
 (0)