summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-18 13:43:42 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-18 13:43:42 +0000
commit7a29ffb14d2e03891db54e2f2eddc5f61c4a1c97 (patch)
tree145cdb7c7e1c16fe338f07fcca36f1dce52b1368 /eval.c
parentfc69eddf5dd32512eb48fe627efd7b594e60e4f9 (diff)
downloadruby-7a29ffb14d2e03891db54e2f2eddc5f61c4a1c97.tar.gz
ruby-7a29ffb14d2e03891db54e2f2eddc5f61c4a1c97.tar.xz
ruby-7a29ffb14d2e03891db54e2f2eddc5f61c4a1c97.zip
* eval.c (proc_invoke): should update "result" for orphans.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4572 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 7cc68613a..56f33baab 100644
--- a/eval.c
+++ b/eval.c
@@ -7035,7 +7035,7 @@ proc_invoke(proc, args, self, klass)
proc_set_safe_level(proc);
result = rb_yield_0(args, self, self!=Qundef?CLASS_OF(self):0, pcall, Qtrue);
}
- else if (pcall || TAG_DST()) {
+ else if (pcall || orphan || TAG_DST()) {
result = prot_tag->retval;
}
POP_TAG();