Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d94dba9

Browse filesBrowse files
theanarkhjuanarbol
authored andcommitted
doc: add tip for NODE_MODULE
PR-URL: #45797 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 7cb6fef commit d94dba9
Copy full SHA for d94dba9

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/addons.md‎

Copy file name to clipboardExpand all lines: doc/api/addons.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ When building addons with `node-gyp`, using the macro `NODE_GYP_MODULE_NAME` as
107107
the first parameter of `NODE_MODULE()` will ensure that the name of the final
108108
binary will be passed to `NODE_MODULE()`.
109109

110+
Addons defined with `NODE_MODULE()` can not be loaded in multiple contexts or
111+
multiple threads at the same time.
112+
110113
### Context-aware addons
111114

112115
There are environments in which Node.js addons may need to be loaded multiple

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.