Skip to content
Closed
Show file tree
Hide file tree
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
fixup: Apply suggestions from code review
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
bmeck and VoltrexKeyva committed Mar 2, 2022
commit c336ad07fd21eb5ec56cdf9b049e853cd8d99c6b
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class ESMLoader {
}

/**
* Returns the url to use for resolution for a given cache key url
* Returns the url to use for the resolution of a given cache key url
* These are not guaranteed to be the same.
*
* In WHATWG HTTP spec for ESM the cache key is the non-I/O bound
Comment thread
bmeck marked this conversation as resolved.
Expand Down
2 changes: 1 addition & 1 deletion test/es-module/test-http-imports.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ for (const { protocol, createServer } of [
assert.strict.notEqual(redirectedNS.default, ns.default);
assert.strict.equal(redirectedNS.url, url.href);

// Redirects have same import.meta.url but different cache
// Redirects have the same import.meta.url but different cache
// entry on Web
const relativeAfterRedirect = new url("https://github.com/nodejs/node/pull/42131/commits/url.href%20+%20'foo/index.js'");
const redirected = new url("https://github.com/nodejs/node/pull/42131/commits/url.href%20+%20'bar/index.js'");
Comment thread
bmeck marked this conversation as resolved.
Expand Down