ruby-changes:45818
From: nobu <ko1@a...>
Date: Sun, 12 Mar 2017 14:49:04 +0900 (JST)
Subject: [ruby-changes:45818] nobu:r57891 (trunk): compile.c: NODE_VALUES must not be popped
nobu 2017-03-12 14:48:58 +0900 (Sun, 12 Mar 2017) New Revision: 57891 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57891 Log: compile.c: NODE_VALUES must not be popped Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 57890) +++ compile.c (revision 57891) @@ -5504,14 +5504,14 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L5504 } case NODE_VALUES:{ NODE *n = node; + if (popped) { + COMPILE_ERROR(ERROR_ARGS "NODE_VALUES: must not be popped"); + } while (n) { CHECK(COMPILE(ret, "values item", n->nd_head)); n = n->nd_next; } ADD_INSN1(ret, line, newarray, INT2FIX(node->nd_alen)); - if (popped) { - ADD_INSN(ret, line, pop); - } break; } case NODE_HASH:{ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/