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>
This commit is contained in:
Brian White 2017-01-13 05:12:54 -05:00
parent a851b868c0
commit 298a40e04e
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209

View File

@ -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 = [];