File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 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');
55var normalizeOptions = require ( './normalize-options.js' ) ;
66var isCore = require ( './is-core' ) ;
77
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 ;
99
1010var defaultIsFile = function isFile ( file , cb ) {
1111 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');
55var nodeModulesPaths = require ( './node-modules-paths.js' ) ;
66var normalizeOptions = require ( './normalize-options.js' ) ;
77
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 ;
99
1010var defaultIsFile = function isFile ( file ) {
1111 try {
You can’t perform that action at this time.
0 commit comments