Skip to content

Commit

Permalink
module: use "clean" objects
Browse files Browse the repository at this point in the history
PR-URL: nodejs#10789
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
  • Loading branch information
mscdex authored and jungx098 committed Mar 21, 2017
1 parent b4638fa commit b7c08eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down

0 comments on commit b7c08eb

Please sign in to comment.