From 4c619ec421fc5080888bb68d21146da6d3219b21 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 c61a27a9e3..1208a7f626 100644 --- a/lib/module.js +++ b/lib/module.js @@ -636,7 +636,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); };