Skip to content

Commit

Permalink
module: use "clean" objects
Browse files Browse the repository at this point in the history
PR-URL: #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 committed Mar 11, 2017
1 parent a851b86 commit 298a40e
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 298a40e

Please sign in to comment.