Skip to content

Commit 90eb765

Browse files
benglMylesBorins
authored andcommittedApr 21, 2016
doc: native module reloading is not supported
Clarify in docs for require.cache that reloading native modules isn't supported. Related: #6160 PR-URL: #6168 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fbb0a06 commit 90eb765

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎doc/api/globals.markdown

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ global but rather local to each module.
145145
* {Object}
146146

147147
Modules are cached in this object when they are required. By deleting a key
148-
value from this object, the next `require` will reload the module.
148+
value from this object, the next `require` will reload the module. Note that
149+
this does not apply to [native addons][], for which reloading will result in an
150+
Error.
149151

150152
### require.extensions
151153

@@ -199,6 +201,7 @@ but rather than loading the module, just return the resolved filename.
199201
[buffer section]: buffer.html
200202
[module system documentation]: modules.html
201203
[Modules]: modules.html#modules_modules
204+
[native addons]: addons.html
202205
[timers]: timers.html
203206
[`clearImmediate`]: timers.html#timers_clearimmediate_immediateobject
204207
[`clearInterval`]: timers.html#timers_clearinterval_intervalobject

0 commit comments

Comments
 (0)