aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-25 10:58:48 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-25 10:58:48 +0300
commit202fb937995086561421719b2b26449757e80913 (patch)
tree25e25e0536ea53047a35df49d903ec017ad48fac
parent7b87d2ef837efa6e8b03f7f778e87e5d264589c0 (diff)
downloadtracifyjs-202fb937995086561421719b2b26449757e80913.tar.gz
tracifyjs-202fb937995086561421719b2b26449757e80913.zip
test for fs.existsSync
-rw-r--r--tools/node.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index de749bb3..4a891380 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -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");