diff --git a/lib/module.js b/lib/module.js index 0c66d3390d222c..d485c7c9a804a3 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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();