diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-05 15:46:24 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-05 15:46:24 +0000 |
commit | 0944a05fb95f262ca58242849936f99bf658506f (patch) | |
tree | 5b2371e1de71021dff8af02ecea6824511723691 | |
parent | a2c9020808417572521c711cf4ad9a3c7b556575 (diff) |
* eval.c (rb_load): should not pass block to the loaded file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sun Oct 6 00:49:15 2002 Minero Aoki <aamine@loveruby.net> + + * eval.c (rb_load): should not pass blocks to the loaded file. + [ruby-dev:18458] + Fri Oct 4 20:25:38 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net> * eval.c (rb_thread_interrupt, rb_thread_signal_raise): no need to @@ -5346,6 +5346,7 @@ rb_load(fname, wrap) rb_extend_object(self, ruby_class); PUSH_CREF(ruby_wrapper); } + PUSH_ITER(ITER_NOT); PUSH_FRAME(); ruby_frame->last_func = 0; ruby_frame->last_class = 0; @@ -5380,6 +5381,7 @@ rb_load(fname, wrap) ruby_cref = saved_cref; POP_SCOPE(); POP_FRAME(); + POP_ITER(); POP_CLASS(); POP_VARS(); ruby_wrapper = wrapper; |