Commit a029b54
committed
Make Enumerator::Chain#each treat lambdas as lambda
Previously, lambdas were converted to procs because of how
rb_block_call works. Switch to rb_funcall_with_block, which
handles procs as procs and lambdas as lambdas.
Fixes [Bug ruby#15613]1 parent 47c97e1 commit a029b54
2 files changed
+17
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3111 | 3111 | | |
3112 | 3112 | | |
3113 | 3113 | | |
3114 | | - | |
3115 | | - | |
3116 | | - | |
3117 | | - | |
3118 | | - | |
3119 | | - | |
3120 | 3114 | | |
3121 | 3115 | | |
3122 | 3116 | | |
| |||
3148 | 3142 | | |
3149 | 3143 | | |
3150 | 3144 | | |
3151 | | - | |
3152 | 3145 | | |
3153 | 3146 | | |
3154 | | - | |
| 3147 | + | |
3155 | 3148 | | |
3156 | 3149 | | |
3157 | 3150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
867 | 883 | | |
0 commit comments