Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
ensure backward compatibility with older node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedeboer committed Nov 21, 2012
1 parent 87728b0 commit f536bc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dryice/index.js
Expand Up @@ -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.
*/
Expand Down

0 comments on commit f536bc6

Please sign in to comment.