@@ -27,7 +27,7 @@ const { BuiltinModule } = require('internal/bootstrap/realm');
2727const { realpathSync } = require ( 'fs' ) ;
2828const { getOptionValue } = require ( 'internal/options' ) ;
2929// Do not eagerly grab .manifest, it may be in TDZ
30- const { sep, posix : { relative : relativePosixPath } , toNamespacedPath , resolve } = require ( 'path' ) ;
30+ const { sep, posix : { relative : relativePosixPath } , resolve } = require ( 'path' ) ;
3131const preserveSymlinks = getOptionValue ( '--preserve-symlinks' ) ;
3232const preserveSymlinksMain = getOptionValue ( '--preserve-symlinks-main' ) ;
3333const experimentalNetworkImports =
@@ -246,8 +246,8 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
246246 throw err ;
247247 }
248248
249- const stats = internalFsBinding . internalModuleStat ( toNamespacedPath ( StringPrototypeEndsWith ( path , '/' ) ?
250- StringPrototypeSlice ( path , - 1 ) : path ) ) ;
249+ const stats = internalFsBinding . internalModuleStat ( StringPrototypeEndsWith ( path , '/' ) ?
250+ StringPrototypeSlice ( path , - 1 ) : path ) ;
251251
252252 // Check for stats.isDirectory()
253253 if ( stats === 1 ) {
@@ -807,7 +807,7 @@ function packageResolve(specifier, base, conditions) {
807807 let lastPath ;
808808 do {
809809 const stat = internalFsBinding . internalModuleStat (
810- toNamespacedPath ( StringPrototypeSlice ( packageJSONPath , 0 , packageJSONPath . length - 13 ) ) ,
810+ StringPrototypeSlice ( packageJSONPath , 0 , packageJSONPath . length - 13 ) ,
811811 ) ;
812812 // Check for !stat.isDirectory()
813813 if ( stat !== 1 ) {
0 commit comments