Skip to content
  • Jean Boussier's avatar
    a4a19b11
    Allow non-finalizable objects in ObjectSpace::WeakMap · a4a19b11
    Jean Boussier authored
    [feature #16035]
    
    This goes one step farther than what nobu did in [feature #13498]
    
    With this patch, special objects such as static symbols, integers, etc can be used as either key or values inside WeakMap. They simply don't have a finalizer defined on them.
    
    This is useful if you need to deduplicate value objects
    a4a19b11
    Allow non-finalizable objects in ObjectSpace::WeakMap
    Jean Boussier authored
    [feature #16035]
    
    This goes one step farther than what nobu did in [feature #13498]
    
    With this patch, special objects such as static symbols, integers, etc can be used as either key or values inside WeakMap. They simply don't have a finalizer defined on them.
    
    This is useful if you need to deduplicate value objects
Loading