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 90eb765

Browse filesBrowse files
benglMylesBorins
authored andcommitted
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 <benjamingr@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fbb0a06 commit 90eb765
Copy full SHA for 90eb765

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/globals.markdown‎

Copy file name to clipboardExpand all lines: doc/api/globals.markdown
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.