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
commitae02ee6c7a5958876ccbae7bead3990dea6f807c (patch)
tree21178223c7d193aa5b6d8dcdfd7bfeb6913de8ad /eval.c
parent50dddfaccf8aa031b699d6dbb63a765bc2d442e1 (diff)
* eval.c (exec_under): should initialize ruby_frame->self;
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@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 aa56085e9a..d7c8c967d4 100644
--- a/eval.c
+++ b/eval.c
@@ -4999,6 +4999,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;