diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-22 03:44:26 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-27 17:20:06 +0100 |
commit | b08a867d6016ccf04783a0f91fdbcc3460daf234 (patch) | |
tree | 5df4b30220cde5ae5eac9ed956c9badac6ba08af /lib/internal/url.js | |
parent | fd992e6e36bb4b01a6ceb71cfeb3bae640b492a6 (diff) | |
download | android-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.tar.gz android-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.tar.bz2 android-node-v8-b08a867d6016ccf04783a0f91fdbcc3460daf234.zip |
benchmark,doc,lib: capitalize more comments
PR-URL: https://github.com/nodejs/node/pull/26849
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
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; |