diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2015-06-18 22:18:46 +0200 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-06-22 22:03:31 +1000 |
commit | a4f4909f3d15dbc02f4742ad168afbe11d6d8dc4 (patch) | |
tree | 2450b6cd018f42c6ed8364ba460cc3f2272f8424 /lib/module.js | |
parent | b0990ef45d0bfd61b9f481a76701482fba4722e4 (diff) | |
download | android-node-v8-a4f4909f3d15dbc02f4742ad168afbe11d6d8dc4.tar.gz android-node-v8-a4f4909f3d15dbc02f4742ad168afbe11d6d8dc4.tar.bz2 android-node-v8-a4f4909f3d15dbc02f4742ad168afbe11d6d8dc4.zip |
module: fix stat with long paths on Windows
PR-URL: https://github.com/nodejs/io.js/pull/2013
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'lib/module.js')
-rw-r--r-- | lib/module.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/module.js b/lib/module.js index 9eba6bfdc1..d9b4415ad8 100644 --- a/lib/module.js +++ b/lib/module.js @@ -143,7 +143,7 @@ Module._findPath = function(request, paths) { // For each path for (var i = 0, PL = paths.length; i < PL; i++) { // Don't search further if path doesn't exist - if (paths[i] && internalModuleStat(paths[i]) < 1) continue; + if (paths[i] && internalModuleStat(path._makeLong(paths[i])) < 1) continue; var basePath = path.resolve(paths[i], request); var filename; |