Skip to content

Commit

Permalink
doc: native module reloading is not supported
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bengl authored and Myles Borins committed Apr 20, 2016
1 parent 1d40809 commit 3f73502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/globals.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ global but rather local to each module.
* {Object}

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

Expand Down Expand Up @@ -199,6 +201,7 @@ but rather than loading the module, just return the resolved filename.
[buffer section]: buffer.html
[module system documentation]: modules.html
[Modules]: modules.html#modules_modules
[native addons]: addons.html
[timers]: timers.html
[`clearImmediate`]: timers.html#timers_clearimmediate_immediateobject
[`clearInterval`]: timers.html#timers_clearinterval_intervalobject
Expand Down

0 comments on commit 3f73502

Please sign in to comment.