From 5a87332ef990798186844fc682175af0e009457f Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 22 Aug 2013 07:23:44 +0000 Subject: [PATCH] * compile.c (build_postexe_iseq): fix to setup the local table. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ compile.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index f3ae66bf54..63bad4f057 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 22 16:22:48 2013 Koichi Sasada + + * compile.c (build_postexe_iseq): fix to setup the local table. + Thu Aug 22 15:42:43 2013 Koichi Sasada * compile.c (rb_iseq_compile_node): accept NODE_IFUNC to support diff --git a/compile.c b/compile.c index 4c37527913..b364c9d9bf 100644 --- a/compile.c +++ b/compile.c @@ -3166,6 +3166,7 @@ build_postexe_iseq(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE *body) VALUE block = NEW_CHILD_ISEQVAL(body, make_name_for_block(iseq->parent_iseq), ISEQ_TYPE_BLOCK, line); ADD_INSN1(ret, line, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE)); ADD_CALL_WITH_BLOCK(ret, line, ID2SYM(id_core_set_postexe), argc, block); + iseq_set_local_table(iseq, 0); return Qnil; }