Node.js v0.8 fix :) #12

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Split
View
@@ -16,8 +16,9 @@ exports.sync = function (x, opts) {
if (core[x]) return x;
if (!opts) opts = {};
+ var exists = fs.existsSync || path.existsSync;
var isFile = opts.isFile || function (file) {
- return path.existsSync(file) && fs.statSync(file).isFile()
+ return exists(file) && fs.statSync(file).isFile()
};
var readFileSync = opts.readFileSync || fs.readFileSync;