ruby-changes:15375
From: muraken <ko1@a...>
Date: Fri, 9 Apr 2010 14:24:23 +0900 (JST)
Subject: [ruby-changes:15375] Ruby:r27266 (trunk): * compile.c (iseq_compile_each): stop hiding, and freeze unpopped string nodes to allow method redefinition.
muraken 2010-04-09 14:22:53 +0900 (Fri, 09 Apr 2010) New Revision: 27266 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27266 Log: * compile.c (iseq_compile_each): stop hiding, and freeze unpopped string nodes to allow method redefinition. [ruby-dev:40641] Modified files: trunk/ChangeLog trunk/compile.c Index: ChangeLog =================================================================== --- ChangeLog (revision 27265) +++ ChangeLog (revision 27266) @@ -1,3 +1,8 @@ +Fri Apr 9 10:53:00 2010 Kenta Murata <mrkn@m...> + + * compile.c (iseq_compile_each): stop hiding, and freeze unpopped + string nodes to allow method redefinition. [ruby-dev:40641] + Fri Apr 9 01:26:54 2010 Nobuyoshi Nakada <nobu@r...> * io.c (internal_{read,write}_func, rb_{read,write}_internal): Index: compile.c =================================================================== --- compile.c (revision 27265) +++ compile.c (revision 27266) @@ -4429,7 +4429,7 @@ case NODE_STR:{ debugp_param("nd_lit", node->nd_lit); if (!poped) { - hide_obj(node->nd_lit); + OBJ_FREEZE(node->nd_lit); ADD_INSN1(ret, nd_line(node), putstring, node->nd_lit); } break; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/