File tree 2 files changed +1
-5
lines changed 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ function hasGlobalProcessEventEmitter() {
129
129
}
130
130
131
131
function tryFileURLToPath ( v ) {
132
- // TODO technically, file URL can omit /s.
133
- // Copy the isFileURL util from resolve-uri?
134
132
if ( isFileUrl ( v ) ) {
135
133
return fileURLToPath ( v ) ;
136
134
}
@@ -154,8 +152,7 @@ function isSchemeRelativeUrl(input) {
154
152
/** @param {string } pathOrFileUrl */
155
153
function getCacheKey ( pathOrFileUrl ) {
156
154
if ( pathOrFileUrl . startsWith ( 'node:' ) ) return pathOrFileUrl ;
157
- // TODO unify with isFileURL checks elsewhere? as helper fn?
158
- if ( pathOrFileUrl . startsWith ( 'file:/' ) ) {
155
+ if ( isFileUrl ( pathOrFileUrl ) ) {
159
156
// Must normalize spaces to %20, stuff like that
160
157
return new URL ( pathOrFileUrl ) . toString ( ) ;
161
158
} else {
Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ it('eval', async function() {
390
390
] , [
391
391
'Error: test' ,
392
392
393
- // TODO
394
393
re `^ at eval \(eval at (<anonymous>|exports\.test|test) \(${ stackFramePathStartsWith ( ) } (?:.*[/\\])?line1\.js:1001:101\)` ,
395
394
396
395
re `^ at ${ stackFrameAtTest ( ) } \(${ stackFramePathStartsWith ( ) } (?:.*[/\\])?line1\.js:1001:101\)$`
You can’t perform that action at this time.
0 commit comments