-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
module: add support for abi stable module API #11975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
43ab5a8
a5d43d1
87c42e7
876e6c8
b129624
66944b8
9e3ab83
fb8ced4
116bd19
1b2f2db
1427b33
6b4ce53
f21ab80
e1ca374
9c0b151
375af79
20b6cf2
7a339c0
232f004
aa22a2a
0e61d00
c87eade
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
This updates the documentation, the error message upon module load failure, the command line option parsing of the flag, and the way the N-API addon tests pass the flag to node. Re #11975 (comment) Re #11975 (comment) Fixes nodejs/abi-stable-node#184 Closes nodejs/abi-stable-node#186
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,13 @@ added: v6.0.0 | |
|
|
||
| Silence all process warnings (including deprecations). | ||
|
|
||
| ### `--napi-modules` | ||
| <!-- YAML | ||
| added: v8.0.0 | ||
| --> | ||
|
|
||
| Load N-API modules. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be a bit more descriptive, how about |
||
|
|
||
| ### `--trace-warnings` | ||
| <!-- YAML | ||
| added: v6.0.0 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2471,7 +2471,8 @@ void DLOpen(const FunctionCallbackInfo<Value>& args) { | |
| sizeof(errmsg), | ||
| "The module '%s'" | ||
| "\nwas compiled against the Node.js API. This feature is " | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This error message could be a bit more specific than
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolved by b129624 |
||
| "\nexperimental and must be enabled on the command-line.", | ||
| "\nexperimental and must be enabled on the command-line by " | ||
| "\nadding --napi-modules.", | ||
| *filename); | ||
| } else { | ||
| snprintf(errmsg, | ||
|
|
@@ -3547,7 +3548,7 @@ static void PrintHelp() { | |
| " --trace-deprecation show stack traces on deprecations\n" | ||
| " --throw-deprecation throw an exception on deprecations\n" | ||
| " --no-warnings silence all process warnings\n" | ||
| " --napi-modules[=yes|no] load N-API modules (default no)\n" | ||
| " --napi-modules load N-API modules\n" | ||
| " --trace-warnings show stack traces on process warnings\n" | ||
| " --redirect-warnings=path\n" | ||
| " write warnings to path instead of\n" | ||
|
|
@@ -3720,10 +3721,6 @@ static void ParseArgs(int* argc, | |
| no_deprecation = true; | ||
| } else if (strcmp(arg, "--napi-modules") == 0) { | ||
| load_napi_modules = true; | ||
| } else if (strcmp(arg, "--napi-modules=yes") == 0) { | ||
| load_napi_modules = true; | ||
| } else if (strcmp(arg, "--napi-modules=no") == 0) { | ||
| load_napi_modules = false; | ||
| } else if (strcmp(arg, "--no-warnings") == 0) { | ||
| no_process_warnings = true; | ||
| } else if (strcmp(arg, "--trace-warnings") == 0) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
added: REPLACEMEhere (although 8.0.0 is a reasonable target, of course)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved by f21ab80