Permalink
Browse files

module: use "clean" objects

PR-URL: #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>
  • Loading branch information...
mscdex committed Jan 13, 2017
1 parent a851b86 commit 298a40e04ee496dbd6b2324a20d9ff745fef74cb
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/module.js
View
@@ -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 = [];

0 comments on commit 298a40e

Please sign in to comment.