[PRISM] Handle RubyVM.keep_script_lines

This commit is contained in:
Kevin Newton 2024-08-29 14:26:08 -04:00
parent 554098303d
commit 371432b2d7
Notes: git 2024-08-30 00:27:21 +00:00
7 changed files with 51 additions and 23 deletions

View file

@ -1719,7 +1719,7 @@ pm_eval_make_iseq(VALUE src, VALUE fname, int line,
// Add our empty local scope at the very end of the array for our eval
// scope's locals.
pm_options_scope_init(&result.options.scopes[scopes_count], 0);
VALUE error = pm_parse_string(&result, src, fname);
VALUE error = pm_parse_string(&result, src, fname, NULL);
// If the parse failed, clean up and raise.
if (error != Qnil) {