Skip to content

Commit

Permalink
clean up TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 1, 2022
1 parent 50c71dd commit 990c03d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ function hasGlobalProcessEventEmitter() {
}

function tryFileURLToPath(v) {
// TODO technically, file URL can omit /s.
// Copy the isFileURL util from resolve-uri?
if(isFileUrl(v)) {
return fileURLToPath(v);
}
Expand All @@ -154,8 +152,7 @@ function isSchemeRelativeUrl(input) {
/** @param {string} pathOrFileUrl */
function getCacheKey(pathOrFileUrl) {
if(pathOrFileUrl.startsWith('node:')) return pathOrFileUrl;
// TODO unify with isFileURL checks elsewhere? as helper fn?
if(pathOrFileUrl.startsWith('file:/')) {
if(isFileUrl(pathOrFileUrl)) {
// Must normalize spaces to %20, stuff like that
return new URL(pathOrFileUrl).toString();
} else {
Expand Down
1 change: 0 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,6 @@ it('eval', async function() {
], [
'Error: test',

// TODO
re`^ at eval \(eval at (<anonymous>|exports\.test|test) \(${stackFramePathStartsWith()}(?:.*[/\\])?line1\.js:1001:101\)`,

re`^ at ${stackFrameAtTest()} \(${stackFramePathStartsWith()}(?:.*[/\\])?line1\.js:1001:101\)$`
Expand Down

0 comments on commit 990c03d

Please sign in to comment.