public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b87d2e
)
test for fs.existsSync
author
Mihai Bazon
<mihai@bazon.net>
Thu, 25 Oct 2012 07:58:48 +0000
(10:58 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Thu, 25 Oct 2012 07:58:48 +0000
(10:58 +0300)
tools/node.js
patch
|
blob
|
history
diff --git
a/tools/node.js
b/tools/node.js
index
de749bb
..
4a89138
100644
(file)
--- 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");