Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esm: skip file: URL conversion to path when possible #46305

Merged
merged 6 commits into from
Apr 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lib/internal/modules/esm/get_format.js
  • Loading branch information
aduh95 committed Mar 19, 2023
commit 0d5e2f48a808f1e0f7b094416c87cd444c845dd1
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/get_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const SLASH_CODE = 47;
/**
* Returns the file extension from a URL. Should give similar result to
* require('node:path').extname(require('node:url').fileURLToPath(url)).
aduh95 marked this conversation as resolved.
Show resolved Hide resolved
* @param {URL} url A file: URL.
* @param {URL} url
* @returns {string}
*/
function extname(url) {
Expand Down