summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-12 14:25:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-12 14:25:01 +0000
commit3889eaca02a641d5b5acf2f15bdf0d4dac4e3d00 (patch)
tree43c33edc50133d4bef4db944dbc5f31e28215b2a /eval.c
parent4817ab23b31c2c71682c3d54e9da45f53fa7f154 (diff)
ruby/ruby.h: freeze singleton class
* include/ruby/ruby.h (rb_obj_freeze_inline): propagate freezing to the singleton class if it is existing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index cd91a1a..90da225 100644
--- a/eval.c
+++ b/eval.c
@@ -409,10 +409,6 @@ rb_frozen_class_p(VALUE klass)
noclass:
Check_Type(klass, T_CLASS);
}
- if (FL_TEST(klass, FL_SINGLETON)) {
- VALUE obj = rb_ivar_get(klass, id__attached__);
- if (OBJ_FROZEN(obj)) OBJ_FREEZE(klass);
- }
if (OBJ_FROZEN(klass)) {
const char *desc;