From 49be22d8dfaa82da0b5f0538096ec1338e3c9a61 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 1 Sep 2007 12:56:29 +0000 Subject: * eval_jump.ci (rb_f_catch): generate new tag object if no argument is given. backported from MatzRuby. [ruby-dev:31609] * eval_jump.ci (rb_catch): call #catch without arguments if tag string is NULL. * eval_jump.ci (rb_f_throw): allow throwing non-symbol object. * eval.c (rb_catch_obj): new function to wait throw with arbitrary object. * eval.c (rb_throw_obj): new function to throw arbitrary object. * variable.c (check_autoload_table): prevent multiple calls from RSTRING_PTR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'bootstraptest/test_knownbug.rb') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 382f027b34..b97a08d928 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -3,11 +3,3 @@ # So all tests will cause failure. # -# catch/throw -assert_equal 'ok', %q{ - begin - catch {|t| throw t, :ok } - rescue ArgumentError - :ng - end -}, '[ruby-dev:31609]' -- cgit v1.2.3