From df0bfde2b29b7e8dac333b2a775ab8bff1283a5c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 18 Dec 2023 15:16:31 -0800 Subject: [PATCH] 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] --- ruby.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ruby.c b/ruby.c index a061b4f0efb3ac..2571edafc94cf2 100644 --- a/ruby.c +++ b/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); + ruby_opt_init(opt); pm_string_free(&input); pm_options_free(&options);