summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-05 15:46:24 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-05 15:46:24 +0000
commit0944a05fb95f262ca58242849936f99bf658506f (patch)
tree5b2371e1de71021dff8af02ecea6824511723691 /eval.c
parenta2c9020808417572521c711cf4ad9a3c7b556575 (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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index b5a09f5..31a7cae 100644
--- a/eval.c
+++ b/eval.c
@@ -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;