Commit 84948cf
assert: fix .throws operator
assert.throws and assert.doesNotThrow set the operator to a
internal function. That was by accident and originally the operator
was undefined. This changes it to show "throws" or "doesNotThrow".
Backport-PR-URL: #23223
PR-URL: #17575
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>1 parent c6d94f8 commit 84948cfCopy full SHA for 84948cf
File tree
Expand file treeCollapse file tree
2 files changed
+16
-7
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+16
-7
lines changedOpen diff view settings
Collapse file
+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
643 | 643 | |
644 | 644 | |
645 | 645 | |
646 | | - |
| 646 | + |
647 | 647 | |
648 | 648 | |
649 | 649 | |
650 | 650 | |
651 | 651 | |
652 | 652 | |
653 | 653 | |
654 | | - |
| 654 | + |
| 655 | + |
| 656 | + |
| 657 | + |
655 | 658 | |
656 | 659 | |
657 | 660 | |
|
Collapse file
test/parallel/test-assert.js
Copy file name to clipboardExpand all lines: test/parallel/test-assert.js+11-5Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
463 | 463 | |
464 | 464 | |
465 | 465 | |
466 | | - |
467 | | - |
468 | | - |
469 | | - |
| 466 | + |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
470 | 475 | |
471 | 476 | |
472 | 477 | |
| ||
525 | 530 | |
526 | 531 | |
527 | 532 | |
528 | | - |
| 533 | + |
| 534 | + |
529 | 535 | |
530 | 536 | |
531 | 537 | |
|
0 commit comments