Skip to content

Commit 7323902

Browse files
MoLowtargos
authored andcommitted
tools: fix jsdoc lint
PR-URL: #47789 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 34bfb69 commit 7323902

File tree

19 files changed

+0
-36
lines changed

19 files changed

+0
-36
lines changed

benchmark/common.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ function getUrlData(withBase) {
374374
* The 'wpt' type contains about 400 data points when `withBase` is true,
375375
* and 200 data points when `withBase` is false.
376376
* Other types contain 200 data points with or without base.
377-
*
378377
* @param {string} type Type of the data, 'wpt' or a key of `urls`
379378
* @param {number} e The repetition of the data, as exponent of 2
380379
* @param {boolean} withBase Whether to include a base URL

lib/internal/async_hooks.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ function clearDefaultTriggerAsyncId() {
445445

446446
/**
447447
* Sets a default top level trigger ID to be used
448-
*
449448
* @template {Array<unknown>} T
450449
* @template {unknown} R
451450
* @param {number} triggerAsyncId

lib/internal/errors.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ const captureLargerStackTrace = hideStackFrames(
499499
* function UVException using a context object with data assembled in C++.
500500
* The goal is to migrate them to ERR_* errors later when compatibility is
501501
* not a concern.
502-
*
503502
* @param {object} ctx
504503
* @returns {Error}
505504
*/
@@ -551,7 +550,6 @@ const uvException = hideStackFrames(function uvException(ctx) {
551550
* This creates an error compatible with errors produced in the C++
552551
* This function should replace the deprecated
553552
* `exceptionWithHostPort()` function.
554-
*
555553
* @param {number} err - A libuv error number
556554
* @param {string} syscall
557555
* @param {string} address
@@ -591,7 +589,6 @@ const uvExceptionWithHostPort = hideStackFrames(
591589

592590
/**
593591
* This used to be util._errnoException().
594-
*
595592
* @param {number} err - A libuv error number
596593
* @param {string} syscall
597594
* @param {string} [original]
@@ -725,7 +722,6 @@ let maxStack_ErrorMessage;
725722
* Returns true if `err.name` and `err.message` are equal to engine-specific
726723
* values indicating max call stack size has been exceeded.
727724
* "Maximum call stack size exceeded" in V8.
728-
*
729725
* @param {Error} err
730726
* @returns {boolean}
731727
*/
@@ -857,7 +853,6 @@ class AbortError extends Error {
857853

858854
/**
859855
* This creates a generic Node.js error.
860-
*
861856
* @param {string} message The error message.
862857
* @param {object} errorProperties Object with additional properties to be added to the error.
863858
* @returns {Error}

lib/internal/modules/esm/fetch_module.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ async function isLocalAddress(hostname) {
235235
*
236236
* In cases where the request & response have already settled, this returns the
237237
* cache value synchronously.
238-
*
239238
* @param {URL} parsed
240239
* @param {ESModuleContext} context
241240
* @returns {ReturnType<typeof fetchWithRedirects>}

lib/internal/modules/esm/hooks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ class Hooks {
193193
* Internally, this behaves like a backwards iterator, wherein the stack of
194194
* hooks starts at the top and each call to `nextResolve()` moves down 1 step
195195
* until it reaches the bottom or short-circuits.
196-
*
197196
* @param {string} originalSpecifier The specified URL path of the module to
198197
* be resolved.
199198
* @param {string} [parentURL] The URL path of the module's parent.
@@ -324,7 +323,6 @@ class Hooks {
324323
* Internally, this behaves like a backwards iterator, wherein the stack of
325324
* hooks starts at the top and each call to `nextLoad()` moves down 1 step
326325
* until it reaches the bottom or short-circuits.
327-
*
328326
* @param {URL['href']} url The URL/path of the module to be loaded
329327
* @param {object} context Metadata about the module
330328
* @returns {Promise<{ format: ModuleFormat, source: ModuleSource }>}

lib/internal/modules/esm/loader.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ class DefaultModuleLoader {
236236
*
237237
* This method must NOT be renamed: it functions as a dynamic import on a
238238
* loader module.
239-
*
240239
* @param {string | string[]} specifiers Path(s) to the module.
241240
* @param {string} parentURL Path of the parent importing the module.
242241
* @param {Record<string, string>} importAssertions Validations for the
@@ -286,7 +285,6 @@ class DefaultModuleLoader {
286285

287286
/**
288287
* Resolve the location of the module.
289-
*
290288
* @param {string} originalSpecifier The specified URL path of the module to
291289
* be resolved.
292290
* @param {string} [parentURL] The URL path of the module's parent.
@@ -309,7 +307,6 @@ class DefaultModuleLoader {
309307

310308
/**
311309
* Provide source that is understood by one of Node's translators.
312-
*
313310
* @param {URL['href']} url The URL/path of the module to be loaded
314311
* @param {object} [context] Metadata about the module
315312
* @returns {Promise<{ format: ModuleFormat, source: ModuleSource }>}
@@ -354,7 +351,6 @@ class CustomizedModuleLoader extends DefaultModuleLoader {
354351

355352
/**
356353
* Resolve the location of the module.
357-
*
358354
* @param {string} originalSpecifier The specified URL path of the module to
359355
* be resolved.
360356
* @param {string} [parentURL] The URL path of the module's parent.
@@ -389,7 +385,6 @@ class CustomizedModuleLoader extends DefaultModuleLoader {
389385

390386
/**
391387
* Provide source that is understood by one of Node's translators.
392-
*
393388
* @param {URL['href']} url The URL/path of the module to be loaded
394389
* @param {object} [context] Metadata about the module
395390
* @returns {Promise<{ format: ModuleFormat, source: ModuleSource }>}

lib/internal/per_context/primordials.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ const {
314314
* Because these functions are used by `makeSafe`, which is exposed on the
315315
* `primordials` object, it's important to use const references to the
316316
* primordials that they use.
317-
*
318317
* @template {Iterable} T
319318
* @template {*} TReturn
320319
* @template {*} TNext

lib/internal/policy/manifest.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ class Manifest {
418418
* the prototype to `null` for values or by running prior to any user code.
419419
*
420420
* `manifestURL` is a URL to resolve relative locations against.
421-
*
422421
* @param {object} obj
423422
* @param {string} manifestHREF
424423
*/

lib/internal/url.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ ObjectDefineProperties(URLSearchParams.prototype, {
692692
*
693693
* We use `href` and `protocol` as they are the only properties that are
694694
* easy to retrieve and calculate due to the lazy nature of the getters.
695-
*
696695
* @param {*} self
697696
* @returns {self is URL}
698697
*/

lib/internal/util/inspect.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ function getUserOptions(ctx, isCrossContext) {
301301
/**
302302
* Echos the value of any input. Tries to print the value out
303303
* in the best way possible given the different types.
304-
*
305304
* @param {any} value The value to print out.
306305
* @param {object} opts Optional options object that alters the output.
307306
*/

0 commit comments

Comments
 (0)