Fix fs.realpathSync on windows

This commit is contained in:
Bert Belder 2011-02-09 04:07:18 +01:00 committed by Ryan Dahl
parent 36846f9b6b
commit 8d70294c31

View File

@ -512,7 +512,7 @@ if (isWindows) {
// the same as path.resolve that fails if the path doesn't exists.
// windows version
fs.realpathSync = function realpathSync(p) {
fs.realpathSync = function realpathSync(p, cache) {
var p = path.resolve(p);
if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
return cache[p];