test for fs.existsSync

This commit is contained in:
Mihai Bazon
2012-10-25 10:58:48 +03:00
parent 7b87d2ef83
commit 202fb93799

View File

@@ -9,7 +9,9 @@ var fs = require("fs");
// but by the time you can set that the `path` module is already
// loaded and `path.existsSync` is already changed to display that
// warning, therefore here's the poor solution:
path.existsSync = fs.existsSync;
if (fs.existsSync) {
path.existsSync = fs.existsSync;
}
var vm = require("vm");
var sys = require("util");