summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
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