From 5e29823d1d392218050bebfba9f68f569c9e5128 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Fri, 18 Aug 2017 13:30:05 +0300 Subject: [PATCH] n-api: remove n-api module loading flag Remove the command line flag that was needed for N-API module loading. Re: https://github.com/nodejs/vm/issues/9 Backport-PR-URL: https://github.com/nodejs/node/pull/19447 PR-URL: https://github.com/nodejs/node/pull/14902 Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Matteo Collina Reviewed-By: Michael Dawson Reviewed-By: James M Snell Reviewed-By: Hitesh Kanwathirtha --- doc/api/cli.md | 9 ----- doc/api/n-api.md | 8 ---- src/env-inl.h | 1 + src/env.cc | 6 +++ src/env.h | 3 ++ src/node.cc | 38 +++++++------------ src/node_api.cc | 20 +--------- test/addons-napi/test_async/test.js | 2 +- test/addons-napi/test_fatal/test.js | 4 +- .../addons-napi/test_function/test_function.c | 4 +- test/addons-napi/test_warning/binding.gyp | 12 ++++++ test/addons-napi/test_warning/test.js | 18 +++++++++ test/addons-napi/test_warning/test_warning.c | 11 ++++++ test/addons-napi/test_warning/test_warning2.c | 11 ++++++ test/addons-napi/testcfg.py | 2 +- 15 files changed, 83 insertions(+), 66 deletions(-) create mode 100644 test/addons-napi/test_warning/binding.gyp create mode 100644 test/addons-napi/test_warning/test.js create mode 100644 test/addons-napi/test_warning/test_warning.c create mode 100644 test/addons-napi/test_warning/test_warning2.c diff --git a/doc/api/cli.md b/doc/api/cli.md index 281a7fbbfba9c3..5a943b3428c6ca 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -119,14 +119,6 @@ added: v6.0.0 Silence all process warnings (including deprecations). -### `--napi-modules` - - -Enable loading native modules compiled with the ABI-stable Node.js API (N-API) -(experimental). - ### `--trace-warnings`