File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ common.expectWarning(
39
39
process . on ( 'warning' , common . mustCall ( ) ) ;
40
40
41
41
const originalStat = Module . _stat ;
42
- // TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching.
43
42
Module . _stat = function ( filename ) {
44
43
if ( ! filename . startsWith ( process . execPath ) ) {
45
44
return originalStat ( filename ) ;
@@ -60,6 +59,7 @@ Module._stat = function(filename) {
60
59
} ;
61
60
62
61
const originalReadFileSync = fs . readFileSync ;
62
+ // TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching fs.
63
63
fs . readFileSync = function readFileSync ( pathArgument , options ) {
64
64
if ( ! pathArgument . startsWith ( process . execPath ) ) {
65
65
return originalReadFileSync . apply ( this , arguments ) ;
You can’t perform that action at this time.
0 commit comments