summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 05:27:10 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 05:27:10 (GMT)
commit506b25aabf66c54cffe478958f8672f7fe6fa669 (patch)
treee495e3702055d35e72535494ac9bef541ca5a81c /iseq.c
parentcb3b463a50dee9d4e3d174dc9b1d7c8181678cd4 (diff)
error.c: name_err_local_variables
* error.c (name_err_local_variables): new method NameError#local_variables for internal use only. [Feature #11777] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 17bfee4..84d2d14 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2319,6 +2319,12 @@ rb_iseqw_line_trace_specify(VALUE iseqval, VALUE pos, VALUE set)
return data.prev == 1 ? Qtrue : Qfalse;
}
+VALUE
+rb_iseqw_local_variables(VALUE iseqval)
+{
+ return rb_iseq_local_variables(iseqw_check(iseqval));
+}
+
/*
* Document-class: RubyVM::InstructionSequence
*