diff options
author | Jean Boussier <byroot@ruby-lang.org> | 2024-02-09 13:54:06 +0100 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2024-02-09 17:38:54 +0100 |
commit | d19d683a354530a27b4cbb049223f8dc70c75849 (patch) | |
tree | 4713b9d23f32b57ec2bc92e80fa06fd21bff13c8 /object.c | |
parent | cf1cd215c0a057da123ec9753091154230b3dc97 (diff) | |
download | ruby-d19d683a354530a27b4cbb049223f8dc70c75849.tar.gz |
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.
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ rb_obj_reveal(VALUE obj, VALUE klass) VALUE rb_obj_setup(VALUE obj, VALUE klass, VALUE type) { - VALUE ignored_flags = RUBY_FL_PROMOTED; + VALUE ignored_flags = RUBY_FL_PROMOTED | RUBY_FL_SEEN_OBJ_ID; RBASIC(obj)->flags = (type & ~ignored_flags) | (RBASIC(obj)->flags & ignored_flags); RBASIC_SET_CLASS(obj, klass); return obj; |