@@ -27,7 +27,7 @@ const { BuiltinModule } = require('internal/bootstrap/realm');
27
27
const { realpathSync } = require ( 'fs' ) ;
28
28
const { getOptionValue } = require ( 'internal/options' ) ;
29
29
// 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' ) ;
31
31
const preserveSymlinks = getOptionValue ( '--preserve-symlinks' ) ;
32
32
const preserveSymlinksMain = getOptionValue ( '--preserve-symlinks-main' ) ;
33
33
const experimentalNetworkImports =
@@ -246,8 +246,8 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
246
246
throw err ;
247
247
}
248
248
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 ) ;
251
251
252
252
// Check for stats.isDirectory()
253
253
if ( stats === 1 ) {
@@ -807,7 +807,7 @@ function packageResolve(specifier, base, conditions) {
807
807
let lastPath ;
808
808
do {
809
809
const stat = internalFsBinding . internalModuleStat (
810
- toNamespacedPath ( StringPrototypeSlice ( packageJSONPath , 0 , packageJSONPath . length - 13 ) ) ,
810
+ StringPrototypeSlice ( packageJSONPath , 0 , packageJSONPath . length - 13 ) ,
811
811
) ;
812
812
// Check for !stat.isDirectory()
813
813
if ( stat !== 1 ) {
0 commit comments