1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

iseq.c: block param name

* iseq.c (rb_insn_operand_intern): show local variable name at
  getblockparam/setblockparam too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-20 14:10:06 +00:00
parent 0078e40115
commit e105ee2bed

3
iseq.c
View file

@ -1418,7 +1418,8 @@ rb_insn_operand_intern(const rb_iseq_t *iseq,
case TS_LINDEX:{
int level;
if (insn == BIN(getlocal) || insn == BIN(setlocal)) {
if (insn == BIN(getlocal) || insn == BIN(setlocal) ||
insn == BIN(getblockparam) || insn == BIN(setblockparam)) {
if (pnop) {
ret = local_var_name(iseq, *pnop, op);
}