ruby-changes:49245
From: nobu <ko1@a...>
Date: Wed, 20 Dec 2017 23:10:10 +0900 (JST)
Subject: [ruby-changes:49245] nobu:r61360 (trunk): iseq.c: block param name
nobu 2017-12-20 23:10:06 +0900 (Wed, 20 Dec 2017) New Revision: 61360 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61360 Log: iseq.c: block param name * iseq.c (rb_insn_operand_intern): show local variable name at getblockparam/setblockparam too. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 61359) +++ iseq.c (revision 61360) @@ -1418,7 +1418,8 @@ rb_insn_operand_intern(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/iseq.c#L1418 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/