Skip to content

Commit

Permalink
requireNative is not available, since path.js was factored out of nod…
Browse files Browse the repository at this point in the history
…e.js
  • Loading branch information
isaacs committed Mar 19, 2010
1 parent 09c6b88 commit 803b165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/path.js
Expand Up @@ -57,7 +57,7 @@ exports.extname = function (path) {
};

exports.exists = function (path, callback) {
requireNative('fs').stat(path, function (err, stats) {
require('fs').stat(path, function (err, stats) {
if (callback) callback(err ? false : true);
});
};

0 comments on commit 803b165

Please sign in to comment.