summaryrefslogtreecommitdiff
path: root/doc/api/modules.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r--doc/api/modules.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md
index 64048cebe8..157ec3b6f7 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -626,9 +626,11 @@ added: v8.9.0
-->
* `request` {string} The module path whose lookup paths are being retrieved.
-* Returns: {Array}
+* Returns: {Array|null}
-Returns an array containing the paths searched during resolution of `request`.
+Returns an array containing the paths searched during resolution of `request` or
+null if the `request` string references a core module, for example `http` or
+`fs`.
## The `module` Object
<!-- YAML