summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-31 08:00:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-31 08:00:18 +0000
commita8c4400d1a6c96710fb0253b96113f9a9bdf86b7 (patch)
treefec997c686302d4a5c727d41ce6b793187b03bcd /eval.c
parentc0fe73989d3027f0d7c196d01951ece6d112d98b (diff)
* eval.c (exec_under): should initialize ruby_frame->self;
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index bea650cc56..90f17e5be4 100644
--- a/eval.c
+++ b/eval.c
@@ -5098,6 +5098,7 @@ exec_under(func, under, args)
PUSH_CLASS();
ruby_class = under;
PUSH_FRAME();
+ ruby_frame->self = _frame.prev->self;
ruby_frame->last_func = _frame.prev->last_func;
ruby_frame->last_class = _frame.prev->last_class;
ruby_frame->argc = _frame.prev->argc;