mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_compile_each): stop hiding, and freeze unpopped string nodes to allow method redefinition. [ruby-dev:40641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92de2ed517
commit
2eda201bc6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Apr 9 10:53:00 2010 Kenta Murata <mrkn@mrkn.jp>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Fri Apr 9 01:26:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (internal_{read,write}_func, rb_{read,write}_internal):
|
* io.c (internal_{read,write}_func, rb_{read,write}_internal):
|
||||||
|
|
|
@ -4429,7 +4429,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
||||||
case NODE_STR:{
|
case NODE_STR:{
|
||||||
debugp_param("nd_lit", node->nd_lit);
|
debugp_param("nd_lit", node->nd_lit);
|
||||||
if (!poped) {
|
if (!poped) {
|
||||||
hide_obj(node->nd_lit);
|
OBJ_FREEZE(node->nd_lit);
|
||||||
ADD_INSN1(ret, nd_line(node), putstring, node->nd_lit);
|
ADD_INSN1(ret, nd_line(node), putstring, node->nd_lit);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue