diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 12:41:47 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-31 12:41:47 +0000 |
commit | 3a9ce187de26c805d1f266666572689d2947cf37 (patch) | |
tree | e42c6a857c3e5fae2afd5d4e9960d7193989eee6 /bootstraptest/test_jump.rb | |
parent | 323d23c44b58ab5f9d6ddd177d54d6fc7f1f4217 (diff) | |
download | ruby-3a9ce187de26c805d1f266666572689d2947cf37.tar.gz |
* vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969]
(re-commit of r26522 since forgot to add a change, sorry)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_jump.rb')
-rw-r--r-- | bootstraptest/test_jump.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstraptest/test_jump.rb b/bootstraptest/test_jump.rb index 77467337c2..bfb380e45b 100644 --- a/bootstraptest/test_jump.rb +++ b/bootstraptest/test_jump.rb @@ -259,3 +259,15 @@ assert_normal_exit %q{ end end } + +assert_normal_exit %q{ + -> do + 1.times do + begin + raise + rescue + return + end + end + end.call +} |