diff options
| author | Ivo Anjo <ivo.anjo@datadoghq.com> | 2022-03-14 09:42:33 +0000 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2022-03-14 10:50:52 +0100 |
| commit | 7348db866a4120b701bf28918d6fcbd4d6f07121 (patch) | |
| tree | e9936c080b5ec9d8bb81e264a353ae383c4875e5 /spec | |
| parent | e859a218fd9a71c521b62df9447ab3c7104eb71f (diff) | |
[DOC] Remove outdated note from WeakRef#initialize
The note
> Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
> Integer, or Float.
has not been true since #2313 (GH-2313, Feature #16035) when
@casperisfine enabled storing non-finalizable objects in the underlying
`ObjectSpace::WeakMap`.
On Ruby 2.7+, `WeakRef.new(1) + 1` works fine and the result is the
expected 2.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5657
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions
