Skip to content

Commit

Permalink
We need to load builtins so that they work
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
tenderlove committed Dec 19, 2023
1 parent 8e6f63d commit df0bfde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ruby.c
Expand Up @@ -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);
Expand Down

0 comments on commit df0bfde

Please sign in to comment.