File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,12 @@ const {
64
64
maybeCacheSourceMap,
65
65
rekeySourceMap
66
66
} = require ( 'internal/source_map/source_map_cache' ) ;
67
- const { pathToFileURL, fileURLToPath, isURLInstance } = require ( 'internal/url' ) ;
67
+ const {
68
+ pathToFileURL,
69
+ fileURLToPath,
70
+ isURLInstance,
71
+ URL
72
+ } = require ( 'internal/url' ) ;
68
73
const { deprecate } = require ( 'internal/util' ) ;
69
74
const vm = require ( 'vm' ) ;
70
75
const assert = require ( 'internal/assert' ) ;
@@ -984,7 +989,7 @@ const absolutePathToUrlConverter = new URL('file://');
984
989
985
990
function wrapSafe ( filename , content , cjsModuleInstance ) {
986
991
let filenameUrl = filename ;
987
- if ( path . isAbsolute ( filename ) ) {
992
+ if ( path . isAbsolute ( filename ) ) {
988
993
absolutePathToUrlConverter . pathname = filename ;
989
994
filenameUrl = absolutePathToUrlConverter . href ;
990
995
}
You can’t perform that action at this time.
0 commit comments