Skip to content

Commit

Permalink
Merge pull request #168 from ardeois/master
Browse files Browse the repository at this point in the history
Fix Uncaught Type Error
  • Loading branch information
LinusU authored Jan 17, 2017
2 parents b70e2fe + 20d89e8 commit ce4cb35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ var path = require('path');
var fs;
try {
fs = require('fs');
if (!fs.existsSync || !fs.readFileSync) {
// fs doesn't have all methods we need
fs = null;
}
} catch (err) {
/* nop */
}
Expand Down

0 comments on commit ce4cb35

Please sign in to comment.