[ruby-cvs:51647] eregon:r44502 (trunk): * compar.c (cmp_equal): remove error hiding in Comparable#==.

eregon at ruby-lang.org eregon at ruby-lang.org
Sun Jan 5 20:15:01 JST 2014


eregon	2014-01-05 20:14:59 +0900 (Sun, 05 Jan 2014)

  New Revision: 44502

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44502

  Log:
    * compar.c (cmp_equal): remove error hiding in Comparable#==.
      Comparable#== no longer rescues exceptions silently.
      This was the cause of quite a couple bugs. See #7688. [EXPERIMENTAL]
    * test/ruby/test_comparable.rb: adapt assertion to match new behavior.
    * lib/rdoc/method_attr.rb: fix bugs discovered by this change.
    * test/rdoc/test_rdoc_normal_class.rb: fix bugs in tests.

  Modified files:
    trunk/ChangeLog
    trunk/compar.c
    trunk/lib/rdoc/method_attr.rb
    trunk/test/rdoc/test_rdoc_normal_class.rb
    trunk/test/ruby/test_comparable.rb


More information about the ruby-cvs mailing list