mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
class.c (copy_class): copy source flags as well (except frozen flag)
This commit is contained in:
+2
-1
@@ -2720,7 +2720,8 @@ copy_class(mrb_state *mrb, mrb_value dst, mrb_value src)
|
||||
}
|
||||
}
|
||||
dc->super = sc->super;
|
||||
MRB_SET_INSTANCE_TT(dc, MRB_INSTANCE_TT(sc));
|
||||
dc->flags = sc->flags;
|
||||
dc->flags &= ~MRB_FL_OBJ_IS_FROZEN;
|
||||
}
|
||||
|
||||
/* 15.3.1.3.16 */
|
||||
|
||||
Reference in New Issue
Block a user