Skip to content

Commit

Permalink
module: avoid using forEach
Browse files Browse the repository at this point in the history
PR-URL: #11582
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
jasnell authored and italoacasas committed Mar 20, 2017
1 parent c0a2e02 commit 7e23072
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,8 @@ Module._preloadModules = function(requests) {
throw e;
}
}
requests.forEach(function(request) {
parent.require(request);
});
for (var n = 0; n < requests.length; n++)
parent.require(requests[n]);
};

Module._initPaths();
Expand Down

0 comments on commit 7e23072

Please sign in to comment.