From d66d2beb7b436c0a5d33f0d0fe5dcc2a804689d4 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 27 Dec 2008 04:45:28 +0000 Subject: * eval.c (get_errinfo): return th->errinfo value if normal errinfo place (dynamic local viriable) is not found. fixes Bug #732 [ruby-dev:37046]. * bootstraptest/test_proc.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_proc.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bootstraptest') diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb index 9bef6ea85..820dc1f76 100644 --- a/bootstraptest/test_proc.rb +++ b/bootstraptest/test_proc.rb @@ -418,3 +418,11 @@ assert_equal 'foo!', %q{ fp.bar }, 'Subclass of Proc' + +assert_equal 'ok', %q{ + at_exit{ + print $!.message + } + raise "ok" +} + -- cgit