diff options
author | Danielle Adams <adamzdanielle@gmail.com> | 2023-04-10 23:15:19 -0400 |
---|---|---|
committer | Danielle Adams <adamzdanielle@gmail.com> | 2023-04-11 09:08:36 -0400 |
commit | 62cbddd86f99a5cfdaf21339f61216bec3e183ec (patch) | |
tree | 72f6917a7b70e3d4fa61015ea89cb75559559f83 | |
parent | 8ea835419efe104ca8eb7c4d493daaa05b2a480c (diff) | |
download | node-new-62cbddd86f99a5cfdaf21339f61216bec3e183ec.tar.gz |
lib: fix trailing commas and leftover function from rebasing
PR-URL: https://github.com/nodejs/node/pull/47503
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
-rw-r--r-- | lib/internal/url.js | 8 | ||||
-rw-r--r-- | lib/timers.js | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js index e23afe3f93..7c24dffb6d 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -109,7 +109,7 @@ const { kPathStart, kPort, kQuery, - kSchemeStart + kSchemeStart, } = internalBinding('url'); const { @@ -641,10 +641,6 @@ function onParseHashComplete(flags, protocol, username, password, this[context].fragment = fragment; } -function isURLThis(self) { - return (self !== undefined && self !== null && self[context] !== undefined); -} - class URL { constructor(input, base = undefined) { // toUSVString is not needed. @@ -718,7 +714,7 @@ class URL { unicode: false, search: true, auth: true, - ...options + ...options, }; const ctx = this[context]; // https://url.spec.whatwg.org/#url-serializing diff --git a/lib/timers.js b/lib/timers.js index 7094935c51..117df21748 100644 --- a/lib/timers.js +++ b/lib/timers.js @@ -30,7 +30,7 @@ const { const { immediateInfo, - toggleImmediateRef + toggleImmediateRef, } = internalBinding('timers'); const L = require('internal/linkedlist'); const { |