diff options
author | Kevin Newton <[email protected]> | 2024-08-29 14:26:08 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-08-29 20:27:01 -0400 |
commit | 371432b2d7a5f4a21876434047192e680a688780 (patch) | |
tree | 49f8664abca10899bf63cf9d67718aa960ceb92b /ruby.c | |
parent | 554098303dd70adbe611eac5507277560bfa299a (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.c | 4 |
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")); + 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 |