File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var nodeModulesPaths = require('./node-modules-paths.js');
5
5
var normalizeOptions = require ( './normalize-options.js' ) ;
6
6
var isCore = require ( './is-core' ) ;
7
7
8
- var realpath = typeof fs . realpath . native === 'function' ? fs . realpath . native : fs . realpath ;
8
+ var realpath = fs . realpath && typeof fs . realpath . native === 'function' ? fs . realpath . native : fs . realpath ;
9
9
10
10
var defaultIsFile = function isFile ( file , cb ) {
11
11
fs . stat ( file , function ( err , stat ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var caller = require('./caller.js');
5
5
var nodeModulesPaths = require ( './node-modules-paths.js' ) ;
6
6
var normalizeOptions = require ( './normalize-options.js' ) ;
7
7
8
- var realpath = typeof fs . realpathSync . native === 'function' ? fs . realpathSync . native : fs . realpathSync ;
8
+ var realpath = fs . realpathSync && typeof fs . realpathSync . native === 'function' ? fs . realpathSync . native : fs . realpathSync ;
9
9
10
10
var defaultIsFile = function isFile ( file ) {
11
11
try {
You can’t perform that action at this time.
0 commit comments