summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-15 02:27:29 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-03-15 02:27:29 +0000
commit2fab242f668d719b319d155e3bfad2987117dd29 (patch)
tree551e5048d5359375ec562a5a2b8c425e189a2c87 /eval.c
parent5bf96101305c9113122fe32935088613da3c2c50 (diff)
* eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
yield is not break destination. [ruby-dev:23197] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index bcff81b03d..28f886bf8c 100644
--- a/eval.c
+++ b/eval.c
@@ -4729,6 +4729,9 @@ rb_yield_0(val, self, klass, flags, avalue)
if (TAG_DST()) {
result = prot_tag->retval;
}
+ else {
+ lambda = Qtrue; /* just pass TAG_BREAK */
+ }
break;
default:
break;