summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 18:31:58 +0000
committerwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 18:31:58 +0000
commit919887813900fa61026f072a5cbcfd7ad873ea97 (patch)
tree9eab32003eccefe34fd9a27b0050e7e616ea9580 /eval.c
parent665787ea4e0cef0157d6f4a6bca65973ce8839be (diff)
Fix method scoping bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 4098b83382..b4a5545a4f 100644
--- a/eval.c
+++ b/eval.c
@@ -8647,7 +8647,7 @@ proc_invoke(proc, args, self, klass)
OBJSETUP(scope, tmp, T_SCOPE);
scope->local_tbl = _block.scope->local_tbl;
scope->local_vars = _block.scope->local_vars;
- scope->flags |= SCOPE_CLONE;
+ scope->flags |= SCOPE_CLONE | (_block.scope->flags & SCOPE_MALLOC);
_block.scope = scope;
}
/* modify current frame */