Skip to content
  • Ivo Anjo's avatar
    7348db86
    [DOC] Remove outdated note from WeakRef#initialize · 7348db86
    Ivo Anjo authored
    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.
    7348db86
    [DOC] Remove outdated note from WeakRef#initialize
    Ivo Anjo authored
    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.
Loading