summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-09-25 15:49:21 -0700
committerJeremy Evans <code@jeremyevans.net>2019-11-18 01:00:25 +0200
commitc257303ae78d0e307a80dbe5ccd405abc6e8d44d (patch)
tree7ac3c50cb98d43f930bf82bafca7ffbcea39e119 /variable.c
parentd03da13b17484cb3f8697e9125e028eb65ef7a39 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2476
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 4b3b172833..4fdffcb691 100644
--- a/variable.c
+++ b/variable.c
@@ -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