Commit 2c0a751
util: fix iterable types with special prototype
The fallback should only be taken for a null prototype. If an
iterable data type (e.g., Array) has a prototype without
`Symbol.iterator`, just try the best to visualize it as object.
PR-URL: #25457
Fixes: #25451
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 27f9a55 commit 2c0a751
File tree
2 files changed
+22
-16
lines changed- lib/internal/util
- test/parallel
2 files changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
| 466 | + | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
471 | | - | |
| 469 | + | |
472 | 470 | | |
473 | 471 | | |
474 | | - | |
475 | | - | |
| 472 | + | |
476 | 473 | | |
477 | 474 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 475 | + | |
| 476 | + | |
483 | 477 | | |
484 | 478 | | |
485 | | - | |
| 479 | + | |
486 | 480 | | |
487 | | - | |
| 481 | + | |
488 | 482 | | |
489 | 483 | | |
490 | 484 | | |
| |||
728 | 722 | | |
729 | 723 | | |
730 | 724 | | |
731 | | - | |
732 | | - | |
733 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
734 | 730 | | |
735 | 731 | | |
736 | 732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1856 | 1866 | | |
1857 | 1867 | | |
1858 | 1868 | | |
| |||
0 commit comments