summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-26 09:10:42 -0700
committerJeremy Evans <code@jeremyevans.net>2019-09-26 15:30:51 -0700
commit37f9213f8957e0c6dffee7d8803890907f97bdbb (patch)
tree3f864d0c39f3360d62b8a7c90bbeb1c92823c4eb /enumerator.c
parentdd2068ac8d4016f43c1f3cc1aa81decb504db5b6 (diff)
Fix keyword argument separation issues in Enumerator::Generator#each
This requires adding rb_proc_call_kw to pass the keyword flag.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2491
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index af9dc0f..6332219 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 */