Skip to content

Commit

Permalink
module: fix comment from "read-only" to "shallow"
Browse files Browse the repository at this point in the history
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 <mscdex@mscdex.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
bengl authored and Fishrock123 committed Oct 11, 2016
1 parent 573d8bc commit 31232ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ Module._initPaths = function() {

modulePaths = paths;

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

Expand Down

0 comments on commit 31232ad

Please sign in to comment.