summaryrefslogtreecommitdiff
path: root/lib/module.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2017-01-13 05:12:54 -0500
committerBrian White <mscdex@mscdex.net>2017-03-10 23:48:38 -0500
commit298a40e04ee496dbd6b2324a20d9ff745fef74cb (patch)
treee7b1f387ab7f85f754eb424845350469f583d9e5 /lib/module.js
parenta851b868c0a475c29e5af4c0414f9b2d1fa8d26f (diff)
downloadandroid-node-v8-298a40e04ee496dbd6b2324a20d9ff745fef74cb.tar.gz
android-node-v8-298a40e04ee496dbd6b2324a20d9ff745fef74cb.tar.bz2
android-node-v8-298a40e04ee496dbd6b2324a20d9ff745fef74cb.zip
module: use "clean" objects
PR-URL: https://github.com/nodejs/node/pull/10789 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'lib/module.js')
-rw-r--r--lib/module.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/module.js b/lib/module.js
index f40a9aebb1..bd6af190f6 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 = [];