diff --git a/doc/api/modules.md b/doc/api/modules.md index 64048cebe87855..157ec3b6f715b9 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