diff options
author | Bert Belder <bertbelder@gmail.com> | 2012-02-02 16:57:45 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2012-02-02 17:14:03 +0100 |
commit | e5ea6ad0f01e67db73a30190b520df25ba8e16f4 (patch) | |
tree | 666a2f308de780f6933ccc1f166d02c9db28320f | |
parent | a661830569f424ac929a075bacaa94d70e732924 (diff) | |
download | android-node-v8-e5ea6ad0f01e67db73a30190b520df25ba8e16f4.tar.gz android-node-v8-e5ea6ad0f01e67db73a30190b520df25ba8e16f4.tar.bz2 android-node-v8-e5ea6ad0f01e67db73a30190b520df25ba8e16f4.zip |
_makeLong shouldn't turn the empty string into \\?\C:\
-rw-r--r-- | lib/path.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/path.js b/lib/path.js index 6d410c70e5..87451e9375 100644 --- a/lib/path.js +++ b/lib/path.js @@ -420,6 +420,11 @@ exports.existsSync = function(path) { var _makeLong = exports._makeLong = isWindows ? function(path) { + path = "" + path; + if (!path) { + return ""; + } + var resolvedPath = exports.resolve(path); if (resolvedPath.match(/^[a-zA-Z]\:\\/)) { |