Skip to content

Commit 20d89e8

Browse files
authored
fix typo when checking for fs
1 parent 3facb3f commit 20d89e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var path = require('path');
44
var fs;
55
try {
66
fs = require('fs');
7-
if (!fs.readFileSync || !fs.readFileSync) {
7+
if (!fs.existsSync || !fs.readFileSync) {
88
// fs doesn't have all methods we need
99
fs = null;
1010
}

0 commit comments

Comments
 (0)