Skip to content

Commit ece4b2d

Browse files
bengljasnell
authored andcommitted
module: fix comment from "read-only" to "shallow"
The comment here was misleading, implying that the property was being copied as a read-only, when in fact it's just a shallow copy. This serves the purpose of providing the array for introspection, but it isn't read-only. PR-URL: #8887 Reviewed-By: Brian White <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent 450b4ae commit ece4b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ Module._initPaths = function() {
636636

637637
modulePaths = paths;
638638

639-
// clone as a read-only copy, for introspection.
639+
// clone as a shallow copy, for introspection.
640640
Module.globalPaths = modulePaths.slice(0);
641641
};
642642

0 commit comments

Comments
 (0)