diff options
Diffstat (limited to 'lib/internal/url.js')
-rw-r--r-- | lib/internal/url.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js index 95f0fc21e5..9bbd80148c 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -136,7 +136,7 @@ class URLSearchParams { throw new ERR_ARG_NOT_ITERABLE('Query pairs'); } - // sequence<sequence<USVString>> + // Sequence<sequence<USVString>> // Note: per spec we have to first exhaust the lists then process them const pairs = []; for (const pair of init) { @@ -159,7 +159,7 @@ class URLSearchParams { this[searchParams].push(pair[0], pair[1]); } } else { - // record<USVString, USVString> + // Record<USVString, USVString> // Need to use reflection APIs for full spec compliance. this[searchParams] = []; const keys = Reflect.ownKeys(init); @@ -230,7 +230,7 @@ function onParseComplete(flags, protocol, username, password, ctx.query = query; ctx.fragment = fragment; ctx.host = host; - if (!this[searchParams]) { // invoked from URL constructor + if (!this[searchParams]) { // Invoked from URL constructor this[searchParams] = new URLSearchParams(); this[searchParams][context] = this; } @@ -455,7 +455,7 @@ Object.defineProperties(URL.prototype, { try { return (new URL(ctx.path[0])).origin; } catch { - // fall through... do nothing + // Fall through... do nothing } } return kOpaqueOrigin; |