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(
3939process . on ( 'warning' , common . mustCall ( ) ) ;
4040
4141const originalStat = Module . _stat ;
42- // TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching.
4342Module . _stat = function ( filename ) {
4443 if ( ! filename . startsWith ( process . execPath ) ) {
4544 return originalStat ( filename ) ;
@@ -60,6 +59,7 @@ Module._stat = function(filename) {
6059} ;
6160
6261const originalReadFileSync = fs . readFileSync ;
62+ // TODO(aduh95): We'd like to have a better way to achieve this without monkey-patching fs.
6363fs . readFileSync = function readFileSync ( pathArgument , options ) {
6464 if ( ! pathArgument . startsWith ( process . execPath ) ) {
6565 return originalReadFileSync . apply ( this , arguments ) ;
You can’t perform that action at this time.
0 commit comments