doc: native module reloading is not supported
Clarify in docs for require.cache that reloading native modules isn't supported. Related: #6160 PR-URL: https://github.com/nodejs/node/pull/6168 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
58561cf6a8
commit
5c14d695d2
@ -145,7 +145,9 @@ global but rather local to each module.
|
|||||||
* {Object}
|
* {Object}
|
||||||
|
|
||||||
Modules are cached in this object when they are required. By deleting a key
|
Modules are cached in this object when they are required. By deleting a key
|
||||||
value from this object, the next `require` will reload the module.
|
value from this object, the next `require` will reload the module. Note that
|
||||||
|
this does not apply to [native addons][], for which reloading will result in an
|
||||||
|
Error.
|
||||||
|
|
||||||
### require.extensions
|
### require.extensions
|
||||||
|
|
||||||
@ -199,6 +201,7 @@ but rather than loading the module, just return the resolved filename.
|
|||||||
[buffer section]: buffer.html
|
[buffer section]: buffer.html
|
||||||
[module system documentation]: modules.html
|
[module system documentation]: modules.html
|
||||||
[Modules]: modules.html#modules_modules
|
[Modules]: modules.html#modules_modules
|
||||||
|
[native addons]: addons.html
|
||||||
[timers]: timers.html
|
[timers]: timers.html
|
||||||
[`clearImmediate`]: timers.html#timers_clearimmediate_immediateobject
|
[`clearImmediate`]: timers.html#timers_clearimmediate_immediateobject
|
||||||
[`clearInterval`]: timers.html#timers_clearinterval_intervalobject
|
[`clearInterval`]: timers.html#timers_clearinterval_intervalobject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user