mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_compile_each): fix stack consistency bug.
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cf41125e3a
commit
e885517639
3 changed files with 15 additions and 1 deletions
|
@ -681,3 +681,12 @@ assert_equal 'ok', %q{
|
|||
end # direct
|
||||
}, '[ruby-core:14385]'
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
counter = 2
|
||||
while true
|
||||
counter -= 1
|
||||
break if counter == 0
|
||||
"#{next}"
|
||||
end
|
||||
:ok
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue