Kernel#initialize should not break existing mt; fix
This issue was reported by
The solution is suggested by
@@ -915,8 +915,10 @@ boot_defclass(mrb_state *mrb, struct RClass *super)
static void
boot_initmod(mrb_state *mrb, struct RClass *mod)
{
+ if (!mod->mt) {
mod->mt = kh_init(mt, mrb);
}
+}
static struct RClass*
include_class_new(mrb_state *mrb, struct RClass *m, struct RClass *super)
