diff options
author | Jeremy Evans <code@jeremyevans.net> | 2021-11-05 07:08:21 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2021-11-05 06:22:14 -0900 |
commit | e83c02a768af61cd0890a75e90bcae1119d8bd93 (patch) | |
tree | 84ecc55409c1316bdbceb92eaa9fc4ac642987c0 /enum.c | |
parent | 907aa4752752869193f333c4114da85080ec03e3 (diff) |
Delegate keywords from Enumerable#to_a to #each
Fixes [Bug #18289]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5086
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -713,7 +713,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj) { VALUE ary = rb_ary_new(); - rb_block_call(obj, id_each, argc, argv, collect_all, ary); + rb_block_call_kw(obj, id_each, argc, argv, collect_all, ary, RB_PASS_CALLED_KEYWORDS); return ary; } |