Skip to content

Commit 22f0393

Browse files
Trotttargos
authored andcommittedDec 21, 2020
doc: revise addon mulitple initializations text
PR-URL: #36457 Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 584ea8b commit 22f0393

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎doc/api/addons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ There are environments in which Node.js addons may need to be loaded multiple
111111
times in multiple contexts. For example, the [Electron][] runtime runs multiple
112112
instances of Node.js in a single process. Each instance will have its own
113113
`require()` cache, and thus each instance will need a native addon to behave
114-
correctly when loaded via `require()`. From the addon's perspective, this means
115-
that it must support multiple initializations.
114+
correctly when loaded via `require()`. This means that the addon
115+
must support multiple initializations.
116116

117117
A context-aware addon can be constructed by using the macro
118118
`NODE_MODULE_INITIALIZER`, which expands to the name of a function which Node.js

0 commit comments

Comments
 (0)