summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-20 14:10:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-20 14:10:06 +0000
commite105ee2bedc1a40c66929846198dfb07b536c420 (patch)
treeb220b978c5ad575b61a84c0b4646feb300e79cbd /iseq.c
parent0078e40115fd53e2cafd4e8cfb6ff5fd7f87c3db (diff)
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
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 62e337f782..b6b42821e2 100644
--- a/iseq.c
+++ b/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);
}