Skip to content

Commit d3bd284

Browse files
committed
node-api: use v-table to reverse module dependencies
1 parent 2030fd3 commit d3bd284

File tree

172 files changed

+3913
-1193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+3913
-1193
lines changed

node.gyp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,11 @@
894894
'NODE_PLATFORM="<(OS)"',
895895
'NODE_WANT_INTERNALS=1',
896896
# Define NAPI_EXPERIMENTAL to enable Node-API experimental function symbols being exposed.
897-
'NAPI_EXPERIMENTAL=1',
898-
'NODE_API_EXPERIMENTAL_NO_WARNING=1',
897+
'NAPI_EXPERIMENTAL',
898+
# Suppress warning about using experimental Node-API features.
899+
'NODE_API_EXPERIMENTAL_NO_WARNING',
900+
# Enable Node-API headers to support v-table.
901+
'NODE_API_RUNTIME_USE_VTABLE',
899902
# Warn when using deprecated V8 APIs.
900903
'V8_DEPRECATION_WARNINGS=1',
901904
'NODE_OPENSSL_SYSTEM_CERT_PATH="<(openssl_system_ca_path)"',
@@ -1226,6 +1229,9 @@
12261229
'NODE_ARCH="<(target_arch)"',
12271230
'NODE_PLATFORM="<(OS)"',
12281231
'NODE_WANT_INTERNALS=1',
1232+
'NAPI_EXPERIMENTAL',
1233+
'NODE_API_EXPERIMENTAL_NO_WARNING',
1234+
'NODE_API_RUNTIME_USE_VTABLE',
12291235
],
12301236

12311237
'sources': [ '<@(node_cctest_sources)' ],

src/js_native_api.h

Lines changed: 878 additions & 207 deletions
Large diffs are not rendered by default.

src/js_native_api_types.h

Lines changed: 571 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)