diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-07 13:16:01 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-07 13:16:01 +0000 |
commit | a21ac07f691c4eb51530b01d1b5572ba25747b88 (patch) | |
tree | 1b59a72f4d9f0b30f2a36518d0e5ea3dc5eddf75 /ChangeLog | |
parent | ea7ce3096eb4143564ddff0ade2b67a00cde0b85 (diff) | |
download | ruby-a21ac07f691c4eb51530b01d1b5572ba25747b88.tar.gz |
* numeric.c (do_coerce): Add a warning when an exception is raised
or an invalid value is returned in #coerce called by
numeric comparison operators and the exception
thrown by the caller has no information on the failure.
In the next release such exception should not be rescued or
should be the cause of the caller exception. nil is accepted
as the "no possible coercion" return value. See #7688.
* test/ruby/test_numeric.rb: Add corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,15 @@ +Sat Jun 7 22:13:42 2014 Benoit Daloze <eregontp@gmail.com> + + * numeric.c (do_coerce): Add a warning when an exception is raised + or an invalid value is returned in #coerce called by + numeric comparison operators and the exception + thrown by the caller has no information on the failure. + In the next release such exception should not be rescued or + should be the cause of the caller exception. nil is accepted + as the "no possible coercion" return value. See #7688. + + * test/ruby/test_numeric.rb: Add corresponding test. + Sat Jun 7 18:15:33 2014 Benoit Daloze <eregontp@gmail.com> * numeric.c (bit_coerce): remove constant parameter `err' |