From d2062d6e110a5c97850820bcba12fd3aff041806 Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 25 Apr 2017 11:42:20 +0000 Subject: no longer rescue exceptions in numeric comparison operations * numeric.c (do_coerce): no more error hiding. * test/ruby/test_numeric.rb: follow the change. [Feature #7688] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 5ef0bfb112..d7f79727a2 100644 --- a/NEWS +++ b/NEWS @@ -38,6 +38,12 @@ with all sufficient information, see the ChangeLog file or Redmine * exception message "stream closed" is changed [Bug #13405] +* Numeric + + * Numerical comparison operators (<,<=,>=,>) no longer rescue exceptions + of #coerce. Return nil in #coerce if the coercion is impossible. + [Feature #7688] + * Regexp * Update Onigmo 6.1.1. * Support absent operator https://github.com/k-takata/Onigmo/issues/82 -- cgit v1.2.3