Permalink
Browse files

ensure backward compatibility with older node versions

  • Loading branch information...
1 parent 87728b0 commit f536bc6d9aa6d6546668de2de409d52606bd6cda @mikedeboer mikedeboer committed Nov 21, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/dryice/index.js
View
@@ -18,6 +18,10 @@ var fs = require("fs");
var path = require("path");
var ujs = require("uglify-js");
+if (!fs.existsSync) {
+ fs.existsSync = path.existsSync;
+}
+
/**
* See https://github.com/mozilla/dryice for usage instructions.
*/

0 comments on commit f536bc6

Please sign in to comment.