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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
jasnell committed Mar 17, 2017
1 parent ae9e640 commit 2d230fa
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 @@ -676,9 +676,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 2d230fa

Please sign in to comment.