diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-09-24 00:55:11 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-24 08:29:00 +0900 |
commit | 65285bf673914424e960671d1d35e357c455985e (patch) | |
tree | 551c2e9aac3b017d462fadd00c924ddfbeec5ee0 /eval.c | |
parent | 854fe9d1c1d52037a0c04d75b75765f25f028d1e (diff) |
Consider modified modules initialized [Bug #18185]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4883
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -424,6 +424,9 @@ rb_class_modify_check(VALUE klass) if (SPECIAL_CONST_P(klass)) { Check_Type(klass, T_CLASS); } + if (RB_TYPE_P(klass, T_MODULE)) { + rb_module_set_initialized(klass); + } if (OBJ_FROZEN(klass)) { const char *desc; |