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 | 79d646b101ea0ea741ead37729cb6f7a6c9835ac (patch) | |
| tree | 5b2371e1de71021dff8af02ecea6824511723691 | |
| parent | 0aac4795f3664e4c5d887c847551cbf2f0257a7b (diff) | |
| download | ruby-79d646b101ea0ea741ead37729cb6f7a6c9835ac.tar.gz ruby-79d646b101ea0ea741ead37729cb6f7a6c9835ac.tar.xz ruby-79d646b101ea0ea741ead37729cb6f7a6c9835ac.zip | |
* eval.c (rb_load): should not pass block to the loaded file.
git-svn-id: http://svn.ruby-lang.org/repos/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; |
