FrozenError.new accepts :receiver instead of 2nd argument [ci skip]

[ruby-core:96227] [Feature #16419]
This commit is contained in:
Kazuhiro NISHIYAMA 2019-12-23 13:23:08 +09:00
parent 3142a6beb2
commit 92d0958257
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

4
NEWS
View File

@ -319,8 +319,8 @@ FrozenError::
* Added FrozenError#receiver to return the frozen object that
modification was attempted on. To set this object when raising
FrozenError in Ruby code, pass it as the second argument to
FrozenError.new. [Feature #15751]
FrozenError in Ruby code, FrozenError.new accepts a +:receiver+
option. [Feature #15751]
GC::