mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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:
parent
d50c046da0
commit
525aa2dab6
8 changed files with 18 additions and 7 deletions
3
eval.c
3
eval.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue