test for fs.existsSync
This commit is contained in:
@@ -9,7 +9,9 @@ var fs = require("fs");
|
|||||||
// but by the time you can set that the `path` module is already
|
// but by the time you can set that the `path` module is already
|
||||||
// loaded and `path.existsSync` is already changed to display that
|
// loaded and `path.existsSync` is already changed to display that
|
||||||
// warning, therefore here's the poor solution:
|
// warning, therefore here's the poor solution:
|
||||||
|
if (fs.existsSync) {
|
||||||
path.existsSync = fs.existsSync;
|
path.existsSync = fs.existsSync;
|
||||||
|
}
|
||||||
|
|
||||||
var vm = require("vm");
|
var vm = require("vm");
|
||||||
var sys = require("util");
|
var sys = require("util");
|
||||||
|
|||||||
Reference in New Issue
Block a user