diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-26 09:10:42 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-26 15:30:51 -0700 |
commit | 37f9213f8957e0c6dffee7d8803890907f97bdbb (patch) | |
tree | 3f864d0c39f3360d62b8a7c90bbeb1c92823c4eb /enumerator.c | |
parent | dd2068ac8d4016f43c1f3cc1aa81decb504db5b6 (diff) | |
download | ruby-37f9213f8957e0c6dffee7d8803890907f97bdbb.tar.gz |
Fix keyword argument separation issues in Enumerator::Generator#each
This requires adding rb_proc_call_kw to pass the keyword flag.
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index af9dc0fd2b..63322197d6 100644 --- a/enumerator.c +++ b/enumerator.c @@ -1506,7 +1506,7 @@ generator_each(int argc, VALUE *argv, VALUE obj) rb_ary_cat(args, argv, argc); } - return rb_proc_call(ptr->proc, args); + return rb_proc_call_kw(ptr->proc, args, RB_PASS_CALLED_KEYWORDS); } /* Lazy Enumerator methods */ |