From 3a9ce187de26c805d1f266666572689d2947cf37 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 31 Jan 2010 12:41:47 +0000 Subject: * 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 --- bootstraptest/test_jump.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bootstraptest') 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 +} -- cgit v1.2.3