Commit 5566a7f
committed
[ruby/json] Handle non-string keys returning immediate values via
We can't directly call `RBASIC_CLASS` as the return value of
`to_s` may be an immediate.
ruby/json@12dc394d11to_s
1 parent 1103611 commit 5566a7f
File tree
2 files changed
+32
-1
lines changed- ext/json/generator
- test/json
2 files changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
792 | 807 | | |
793 | 808 | | |
794 | 809 | | |
| |||
817 | 832 | | |
818 | 833 | | |
819 | 834 | | |
820 | | - | |
| 835 | + | |
821 | 836 | | |
822 | 837 | | |
823 | 838 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
608 | 624 | | |
609 | 625 | | |
610 | 626 | | |
| |||
0 commit comments