From ca5d54f7d82f54e13e1f78287fa302c25627732b 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 --- doc/api/cli.md | 9 ---- doc/api/n-api.md | 8 ---- src/env-inl.h | 1 + src/env.cc | 6 +++ src/env.h | 2 + src/node.cc | 48 +++++++------------ src/node_api.cc | 20 +------- test/addons-napi/test_async/test.js | 2 +- test/addons-napi/test_fatal/test.js | 2 +- .../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, 86 insertions(+), 70 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 752df72da8ae32..b23311281df807 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -178,14 +178,6 @@ added: v8.4.0 Enable the experimental `'http2'` module. -### `--napi-modules` - - -Enable loading native modules compiled with the ABI-stable Node.js API (N-API) -(experimental). - ### `--abort-on-uncaught-exception`