mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Deprecate rb_eval_cmd, add rb_eval_cmd_kw
rb_eval_cmd takes a safe level, and now that $SAFE is deprecated, it should be deprecated as well. Replace with rb_eval_cmd_kw, which takes a keyword flag. Switch the two callers to this function.
This commit is contained in:
parent
d03da13b17
commit
c257303ae7
Notes:
git
2019-11-18 08:01:11 +09:00
4 changed files with 13 additions and 5 deletions
|
@ -526,7 +526,7 @@ rb_define_virtual_variable(
|
|||
static void
|
||||
rb_trace_eval(VALUE cmd, VALUE val)
|
||||
{
|
||||
rb_eval_cmd(cmd, rb_ary_new3(1, val), 0);
|
||||
rb_eval_cmd_kw(cmd, rb_ary_new3(1, val), RB_NO_KEYWORDS);
|
||||
}
|
||||
|
||||
VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue