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:
parent
8e6f63df47
commit
df0bfde2b2
1
ruby.c
1
ruby.c
@ -2428,6 +2428,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
iseq = rb_iseq_new_main_prism(&input, &options, path);
|
iseq = rb_iseq_new_main_prism(&input, &options, path);
|
||||||
|
ruby_opt_init(opt);
|
||||||
|
|
||||||
pm_string_free(&input);
|
pm_string_free(&input);
|
||||||
pm_options_free(&options);
|
pm_options_free(&options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user