We need to load builtins so that they work

Before this commit no methods defined in Ruby were being loaded. For
example `class` or `tap` methods would not exist.

[ruby-core:115793] [Bug #20073]
This commit is contained in:
Aaron Patterson 2023-12-18 15:16:31 -08:00 committed by Aaron Patterson
parent 8e6f63df47
commit df0bfde2b2

1
ruby.c
View File

@ -2428,6 +2428,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
}
iseq = rb_iseq_new_main_prism(&input, &options, path);
ruby_opt_init(opt);
pm_string_free(&input);
pm_options_free(&options);