File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ const fs = require('fs');
8484const internalFS = require ( 'internal/fs/utils' ) ;
8585const path = require ( 'path' ) ;
8686const { sep } = path ;
87- const { internalModuleStat } = internalBinding ( 'fs' ) ;
87+ const internalFsBinding = internalBinding ( 'fs' ) ;
8888const packageJsonReader = require ( 'internal/modules/package_json_reader' ) ;
8989const { safeGetenv } = internalBinding ( 'credentials' ) ;
9090const {
@@ -148,7 +148,7 @@ function stat(filename) {
148148 const result = statCache . get ( filename ) ;
149149 if ( result !== undefined ) return result ;
150150 }
151- const result = internalModuleStat ( filename ) ;
151+ const result = internalFsBinding . internalModuleStat ( filename ) ;
152152 if ( statCache !== null && result >= 0 ) {
153153 // Only set cache when `internalModuleStat(filename)` succeeds.
154154 statCache . set ( filename , result ) ;
Original file line number Diff line number Diff line change 11'use strict' ;
22
33const { SafeMap } = primordials ;
4- const { internalModuleReadJSON } = internalBinding ( 'fs' ) ;
4+ const internalFsBinding = internalBinding ( 'fs' ) ;
55const { pathToFileURL } = require ( 'url' ) ;
66const { toNamespacedPath } = require ( 'path' ) ;
77
@@ -18,7 +18,7 @@ function read(jsonPath) {
1818 return cache . get ( jsonPath ) ;
1919 }
2020
21- const { 0 : string , 1 : containsKeys } = internalModuleReadJSON (
21+ const { 0 : string , 1 : containsKeys } = internalFsBinding . internalModuleReadJSON (
2222 toNamespacedPath ( jsonPath )
2323 ) ;
2424 const result = { string, containsKeys } ;
You can’t perform that action at this time.
0 commit comments