Skip to content

Commit

Permalink
Revert "realpath files during module load"
Browse files Browse the repository at this point in the history
This reverts commit 131546e.

Doesn't work on windows, coming back soon.
  • Loading branch information
piscisaureus authored and ry committed Jan 5, 2011
1 parent b7b0c92 commit fe6f363
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node.js
Expand Up @@ -169,7 +169,7 @@
try {
var stats = fs.statSync(requestPath);
if (stats && !stats.isDirectory()) {
return fs.realpathSync(requestPath);
return requestPath;
}
} catch (e) {}
return false;
Expand Down Expand Up @@ -277,7 +277,6 @@
if (!filename) {
throw new Error("Cannot find module '" + request + "'");
}
id = filename;
return [id, filename];
}

Expand Down

0 comments on commit fe6f363

Please sign in to comment.