summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-08-29 14:26:08 -0400
committerKevin Newton <[email protected]>2024-08-29 20:27:01 -0400
commit371432b2d7a5f4a21876434047192e680a688780 ()
tree49f8664abca10899bf63cf9d67718aa960ceb92b /ruby.c
parent554098303dd70adbe611eac5507277560bfa299a (diff)
[PRISM] Handle RubyVM.keep_script_lines
Notes: Merged: https://.com/ruby/ruby/pull/11501
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
@@ -2188,7 +2188,7 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result)
ruby_opt_init(opt);
result->node.coverage_enabled = 0;
- error = pm_parse_string(result, opt->e_script, rb_str_new2("-e"));
}
else {
pm_options_command_line_set(options, command_line);
@@ -2201,7 +2201,7 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result)
// to load, it doesn't require files required by -r.
if (NIL_P(error)) {
ruby_opt_init(opt);
- error = pm_parse_file(result, opt->script_name);
}
// Check if (after requiring all of the files through -r flags) we have