diff --git a/lib/internal/url.js b/lib/internal/url.js index e23afe3f93e632..7c24dffb6df266 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 7094935c51a0da..117df2174893fa 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 {