From e105ee2bedc1a40c66929846198dfb07b536c420 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 20 Dec 2017 14:10:06 +0000 Subject: 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 --- iseq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'iseq.c') 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); } -- cgit v1.2.1