Skip to content

Commit 31232ad

Browse files
benglFishrock123
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 573d8bc commit 31232ad

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
@@ -632,7 +632,7 @@ Module._initPaths = function() {
632632

633633
modulePaths = paths;
634634

635-
// clone as a read-only copy, for introspection.
635+
// clone as a shallow copy, for introspection.
636636
Module.globalPaths = modulePaths.slice(0);
637637
};
638638

0 commit comments

Comments
 (0)