summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-12-06 12:06:25 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2022-12-08 15:58:26 -0500
commitbb8afd7265af41a75e8889774aa26f157f146380 (patch)
treeb007884bac61642c1f063130bd9884bbeab5e821 /re.c
parent47a5b34aba514fd075664b4cf0e95e0f7f26609f (diff)
downloadruby-bb8afd7265af41a75e8889774aa26f157f146380.tar.gz
Freeze singleton class, not its origin
Previously, when we froze an object, we froze `RCLASS_ORIGIN(object.singleton_class)`, which didn't freeze `object.singleton_class` when it has some prepended modules. Origin iclass are internal objects and users can't interact with them through Kernel#freeze?, Kernel#freeze, or any mutation method that checks the frozen status. So we shouldn't touch the origin iclasses when the frozen status should be visible. [Bug #19169]
Diffstat (limited to 're.c')
0 files changed, 0 insertions, 0 deletions