diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2022-12-06 12:06:25 -0500 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2022-12-08 15:58:26 -0500 |
commit | bb8afd7265af41a75e8889774aa26f157f146380 (patch) | |
tree | b007884bac61642c1f063130bd9884bbeab5e821 /LEGAL | |
parent | 47a5b34aba514fd075664b4cf0e95e0f7f26609f (diff) | |
download | ruby-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 'LEGAL')
0 files changed, 0 insertions, 0 deletions