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:
parent
0078e40115
commit
e105ee2bed
1 changed files with 2 additions and 1 deletions
3
iseq.c
3
iseq.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue