From 31232adebb3b3c038f4156029fa92fc763c58a54 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Sat, 1 Oct 2016 09:14:59 -0700 Subject: [PATCH] module: fix comment from "read-only" to "shallow" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: https://github.com/nodejs/node/pull/8887 Reviewed-By: Brian White Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Franziska Hinkelmann --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index 8b25c547c4b077..b065cab5d11e3c 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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); };