From 8d70294c31da06ff04279e47739c57a1b57cd5aa Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 9 Feb 2011 04:07:18 +0100 Subject: [PATCH] Fix fs.realpathSync on windows --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index eca2c8a615..18cf7f16c1 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -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];