GeezerVison is showing github.com — doc: native module reloading is not supported · nodejs/node@df5ce6f
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -145,7 +145,9 @@ global but rather local to each module. |
145 | 145 | * {Object} |
146 | 146 |
|
147 | 147 | 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. |
149 | 151 |
|
150 | 152 | ### require.extensions |
151 | 153 |
|
@@ -199,6 +201,7 @@ but rather than loading the module, just return the resolved filename. |
199 | 201 | [buffer section]: buffer.html |
200 | 202 | [module system documentation]: modules.html |
201 | 203 | [Modules]: modules.html#modules_modules |
| 204 | +[native addons]: addons.html |
202 | 205 | [timers]: timers.html |
203 | 206 | [`clearImmediate`]: timers.html#timers_clearimmediate_immediateobject |
204 | 207 | [`clearInterval`]: timers.html#timers_clearinterval_intervalobject |
|