mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Freeze command line script
This commit is contained in:
parent
8a46b480a7
commit
791d7d4947
1 changed files with 1 additions and 0 deletions
1
ruby.c
1
ruby.c
|
@ -2051,6 +2051,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
|
|||
rb_gvar_ractor_local("$-a");
|
||||
|
||||
if ((rb_e_script = opt->e_script) != 0) {
|
||||
rb_str_freeze(rb_e_script);
|
||||
rb_gc_register_mark_object(opt->e_script);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue