[ruby-cvs:65648] eregon:r58476 (trunk): no longer rescue exceptions of #<=> when initializing a Range

eregon at ruby-lang.org eregon at ruby-lang.org
Tue Apr 25 20:42:43 JST 2017


eregon	2017-04-25 20:42:43 +0900 (Tue, 25 Apr 2017)

  New Revision: 58476

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58476

  Log:
    no longer rescue exceptions of #<=> when initializing a Range
    
    * range.c (range_init): no longer hide the user exception
      with a ArgumentError, just let the user exception go through.
    * test/ruby/test_range.rb (test_new): add tests.
      [Feature #7688]

  Modified files:
    trunk/NEWS
    trunk/range.c
    trunk/test/ruby/test_range.rb


More information about the ruby-cvs mailing list