From 298a40e04ee496dbd6b2324a20d9ff745fef74cb Mon Sep 17 00:00:00 2001 From: Brian White Date: Fri, 13 Jan 2017 05:12:54 -0500 Subject: [PATCH] module: use "clean" objects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/10789 Reviewed-By: James M Snell Reviewed-By: Michaƫl Zasso Reviewed-By: Michael Dawson Reviewed-By: Matteo Collina Reviewed-By: Benjamin Gruenbaum --- lib/module.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/module.js b/lib/module.js index f40a9aebb1592e..bd6af190f642b1 100644 --- a/lib/module.js +++ b/lib/module.js @@ -69,9 +69,9 @@ function Module(id, parent) { } module.exports = Module; -Module._cache = {}; -Module._pathCache = {}; -Module._extensions = {}; +Module._cache = Object.create(null); +Module._pathCache = Object.create(null); +Module._extensions = Object.create(null); var modulePaths = []; Module.globalPaths = [];