Skip to content
  • NARUSE, Yui's avatar
    a63e9798
    merge revision(s)... · a63e9798
    NARUSE, Yui authored
    
    merge revision(s) d19d683a,de1a586e: [Backport #20250] (#10308)
    
    rb_obj_setup: do not copy RUBY_FL_SEEN_OBJ_ID
    
    	[Bug #20250]
    
    	We're seting up a new instance, so it never had an associated
    	object_id.
    
    	proc.c: get rid of `CLONESETUP`
    	MIME-Version: 1.0
    	Content-Type: text/plain; charset=UTF-8
    	Content-Transfer-Encoding: 8bit
    
    	[Bug #20253]
    
    	All the way down to Ruby 1.9, `Proc`, `Method`, `UnboundMethod`
    	and `Binding` always had their own specific clone and dup routine.
    
    	This caused various discrepancies with how other objects behave
    	on `dup` and `clone. [Bug #20250], [Bug #20253].
    
    	This commit get rid of `CLONESETUP` and use the the same codepath
    	as all other types, so ensure consistency.
    
    	NB: It's still not accepting the `freeze` keyword argument on `clone`.
    
    Co-Authored-By: default avatarÉtienne Barrié <etienne.barrie@gmail.com>
    a63e9798
    merge revision(s)...
    NARUSE, Yui authored
    
    merge revision(s) d19d683a,de1a586e: [Backport #20250] (#10308)
    
    rb_obj_setup: do not copy RUBY_FL_SEEN_OBJ_ID
    
    	[Bug #20250]
    
    	We're seting up a new instance, so it never had an associated
    	object_id.
    
    	proc.c: get rid of `CLONESETUP`
    	MIME-Version: 1.0
    	Content-Type: text/plain; charset=UTF-8
    	Content-Transfer-Encoding: 8bit
    
    	[Bug #20253]
    
    	All the way down to Ruby 1.9, `Proc`, `Method`, `UnboundMethod`
    	and `Binding` always had their own specific clone and dup routine.
    
    	This caused various discrepancies with how other objects behave
    	on `dup` and `clone. [Bug #20250], [Bug #20253].
    
    	This commit get rid of `CLONESETUP` and use the the same codepath
    	as all other types, so ensure consistency.
    
    	NB: It's still not accepting the `freeze` keyword argument on `clone`.
    
    Co-Authored-By: default avatarÉtienne Barrié <etienne.barrie@gmail.com>
Loading