mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Mark RClass instance that may be namespaced with RCLASS_NAMESPACEABLE
This commit is contained in:
parent
393e9a5f3e
commit
96a0c2065a
6 changed files with 24 additions and 5 deletions
4
ruby.c
4
ruby.c
|
@ -1822,8 +1822,6 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
|
|||
GET_VM()->running = 1;
|
||||
memset(ruby_vm_redefined_flag, 0, sizeof(ruby_vm_redefined_flag));
|
||||
|
||||
ruby_init_prelude();
|
||||
|
||||
if (rb_namespace_available())
|
||||
rb_initialize_main_namespace();
|
||||
|
||||
|
@ -1844,6 +1842,8 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
|
|||
Init_builtin_yjit_hook();
|
||||
#endif
|
||||
|
||||
rb_namespace_init_done();
|
||||
ruby_init_prelude();
|
||||
ruby_set_script_name(opt->script_name);
|
||||
require_libraries(&opt->req_list);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue