Browse Source

Revert "realpath files during module load"

This reverts commit 131546e733.

Doesn't work on windows, coming back soon.
v0.7.4-release
Bert Belder 14 years ago
committed by Ryan Dahl
parent
commit
fe6f363837
  1. 3
      src/node.js

3
src/node.js

@ -169,7 +169,7 @@
try {
var stats = fs.statSync(requestPath);
if (stats && !stats.isDirectory()) {
return fs.realpathSync(requestPath);
return requestPath;
}
} catch (e) {}
return false;
@ -277,7 +277,6 @@
if (!filename) {
throw new Error("Cannot find module '" + request + "'");
}
id = filename;
return [id, filename];
}

Loading…
Cancel
Save