diff options
author | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 18:31:58 +0000 |
---|---|---|
committer | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-10 18:31:58 +0000 |
commit | 919887813900fa61026f072a5cbcfd7ad873ea97 (patch) | |
tree | 9eab32003eccefe34fd9a27b0050e7e616ea9580 /eval.c | |
parent | 665787ea4e0cef0157d6f4a6bca65973ce8839be (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |