ruby-changes:60371
From: Nobuyoshi <ko1@a...>
Date: Thu, 12 Mar 2020 17:28:08 +0900 (JST)
Subject: [ruby-changes:60371] 83e9d6b3f4 (master): Pass keyword argument by RB_PASS_KEYWORDS
https://git.ruby-lang.org/ruby.git/commit/?id=83e9d6b3f4 From 83e9d6b3f40971bf054ba83ba175227b262bcd14 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 12 Mar 2020 17:09:43 +0900 Subject: Pass keyword argument by RB_PASS_KEYWORDS To pass `false` as `freeze:` keyword argument, `kw_splat` argument should be true. Also `rb_keyword_given_p()` should return true here as `false` has been given as a keyword argument. diff --git a/object.c b/object.c index e15b17f..496955e 100644 --- a/object.c +++ b/object.c @@ -493,7 +493,7 @@ mutable_obj_clone(VALUE obj, int kwfreeze) https://github.com/ruby/ruby/blob/trunk/object.c#L493 argv[0] = obj; argv[1] = freeze_false_hash; - rb_funcallv_kw(clone, id_init_clone, 2, argv, RB_PASS_CALLED_KEYWORDS); + rb_funcallv_kw(clone, id_init_clone, 2, argv, RB_PASS_KEYWORDS); } return clone; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/