mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
module: avoid using forEach
PR-URL: https://github.com/nodejs/node/pull/11582 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
ae9e640f30
commit
2d230faa56
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user