* 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/branches/ruby_1_8@5953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2004-03-15 02:33:03 +00:00
parent d50c046da0
commit 525aa2dab6
8 changed files with 18 additions and 7 deletions

3
eval.c
View file

@ -4739,6 +4739,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;