mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
74c398b82f
commit
83e9d6b3f4
1 changed files with 1 additions and 1 deletions
2
object.c
2
object.c
|
@ -493,7 +493,7 @@ mutable_obj_clone(VALUE obj, int kwfreeze)
|
|||
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue