0
0
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:
James M Snell 2017-02-27 09:33:07 -08:00
parent ae9e640f30
commit 2d230faa56

View File

@ -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();