diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-13 04:30:08 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-13 04:30:08 +0000 |
| commit | 581135e4fd4f0c44435f5bb1b62c0fad45d26215 (patch) | |
| tree | 2ad1b9d864f89d25e8ed00d8a2fd54c17ac7afc6 /eval.c | |
| parent | ae00dbf6430d4f3e7effa25679e18d0001b84bfd (diff) | |
| download | ruby-581135e4fd4f0c44435f5bb1b62c0fad45d26215.tar.gz ruby-581135e4fd4f0c44435f5bb1b62c0fad45d26215.tar.xz ruby-581135e4fd4f0c44435f5bb1b62c0fad45d26215.zip | |
* eval.c (eval): should push class from binding if supplied.
[ruby-core:07347]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6341,6 +6341,7 @@ eval(self, src, scope, file, line) file = ruby_sourcefile; line = ruby_sourceline; } + PUSH_CLASS(data ? data->klass : ruby_class); ruby_in_eval++; if (TYPE(ruby_class) == T_ICLASS) { ruby_class = RBASIC(ruby_class)->klass; @@ -6361,6 +6362,7 @@ eval(self, src, scope, file, line) result = eval_node(self, node); } POP_TAG(); + POP_CLASS(); ruby_in_eval--; if (!NIL_P(scope)) { int dont_recycle = ruby_scope->flags & SCOPE_DONT_RECYCLE; |
