summaryrefslogtreecommitdiff
path: root/lib/internal/url.js
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-22 03:44:26 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-27 17:20:06 +0100
commitb08a867d6016ccf04783a0f91fdbcc3460daf234 (patch)
tree5df4b30220cde5ae5eac9ed956c9badac6ba08af /lib/internal/url.js
parentfd992e6e36bb4b01a6ceb71cfeb3bae640b492a6 (diff)
downloadandroid-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.js8
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;