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 (patch)
tree49f8664abca10899bf63cf9d67718aa960ceb92b /ruby.c
parent554098303dd70adbe611eac5507277560bfa299a (diff)
[PRISM] Handle RubyVM.keep_script_lines
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11501
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 2d85db9ef2..7bd894a1b6 100644
--- a/ruby.c
+++ b/ruby.c
@@ -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"));
+ error = pm_parse_string(result, opt->e_script, rb_str_new2("-e"), NULL);
}
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);
+ error = pm_parse_file(result, opt->script_name, NULL);
}
// Check if (after requiring all of the files through -r flags) we have