Permalink
Browse files

Fix fs.realpathSync on windows

  • Loading branch information...
1 parent 36846f9 commit 8d70294c31da06ff04279e47739c57a1b57cd5aa @piscisaureus piscisaureus committed with ry Feb 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fs.js
View
@@ -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];

0 comments on commit 8d70294

Please sign in to comment.