Commit a8e9015
lib: fix JSDoc issues
Updating ESLint and dependencies will start flagging a few additional
JSDoc issues. One or two of these are simple fixes. The ESM stuff
requires throwing explicitly in JSDoc'ed functions rather than calling
another function to throw. I think this makes the code easier to
understand--you don't need to know that a particular function that
starts with `throwsIf` *might* throw but something that starts with
`throwsAnythingElse` will always throw. Instead, it's right there in the
code. This also might make it easier to improve stack traces if that's
something we'd like to do at some point.
PR-URL: #45243
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>1 parent 1f0edde commit a8e9015Copy full SHA for a8e9015
File tree
Expand file treeCollapse file tree
4 files changed
+44
-19
lines changedOpen diff view settings
Filter options
- lib
- internal
- modules/esm
Expand file treeCollapse file tree
4 files changed
+44
-19
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
178 | 178 | |
179 | 179 | |
180 | 180 | |
181 | | - |
| 181 | + |
182 | 182 | |
183 | 183 | |
184 | 184 | |
|
Collapse file
lib/internal/modules/esm/assert.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/assert.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
81 | 81 | |
82 | 82 | |
83 | 83 | |
84 | | - |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+42-16Lines changed: 42 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
277 | 277 | |
278 | 278 | |
279 | 279 | |
280 | | - |
281 | | - |
| 280 | + |
| 281 | + |
282 | 282 | |
283 | 283 | |
284 | 284 | |
| ||
288 | 288 | |
289 | 289 | |
290 | 290 | |
291 | | - |
292 | | - |
| 291 | + |
| 292 | + |
293 | 293 | |
294 | 294 | |
295 | 295 | |
| ||
310 | 310 | |
311 | 311 | |
312 | 312 | |
313 | | - |
| 313 | + |
314 | 314 | |
315 | 315 | |
316 | 316 | |
317 | 317 | |
318 | 318 | |
319 | 319 | |
320 | | - |
| 320 | + |
321 | 321 | |
322 | 322 | |
323 | 323 | |
| ||
327 | 327 | |
328 | 328 | |
329 | 329 | |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
330 | 343 | |
331 | 344 | |
332 | 345 | |
| ||
340 | 353 | |
341 | 354 | |
342 | 355 | |
343 | | - |
| 356 | + |
344 | 357 | |
345 | 358 | |
346 | 359 | |
| ||
360 | 373 | |
361 | 374 | |
362 | 375 | |
363 | | - |
| 376 | + |
364 | 377 | |
365 | 378 | |
366 | 379 | |
| ||
375 | 388 | |
376 | 389 | |
377 | 390 | |
378 | | - |
| 391 | + |
379 | 392 | |
380 | 393 | |
381 | 394 | |
| ||
384 | 397 | |
385 | 398 | |
386 | 399 | |
387 | | - |
| 400 | + |
388 | 401 | |
389 | 402 | |
390 | 403 | |
| ||
421 | 434 | |
422 | 435 | |
423 | 436 | |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
| 448 | + |
| 449 | + |
424 | 450 | |
425 | 451 | |
426 | 452 | |
| ||
485 | 511 | |
486 | 512 | |
487 | 513 | |
488 | | - |
489 | | - |
| 514 | + |
| 515 | + |
490 | 516 | |
491 | 517 | |
492 | 518 | |
| ||
543 | 569 | |
544 | 570 | |
545 | 571 | |
546 | | - |
| 572 | + |
547 | 573 | |
548 | 574 | |
549 | 575 | |
| ||
594 | 620 | |
595 | 621 | |
596 | 622 | |
597 | | - |
| 623 | + |
598 | 624 | |
599 | 625 | |
600 | 626 | |
601 | 627 | |
602 | | - |
| 628 | + |
603 | 629 | |
604 | 630 | |
605 | 631 | |
| ||
679 | 705 | |
680 | 706 | |
681 | 707 | |
682 | | - |
| 708 | + |
683 | 709 | |
684 | 710 | |
685 | 711 | |
|
Collapse file
-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
325 | 325 | |
326 | 326 | |
327 | 327 | |
328 | | - |
329 | 328 | |
330 | 329 | |
331 | 330 | |
|
0 commit comments