[PRISM] Keep script lines option for eval iseqs as well
This commit is contained in:
parent
f1349924df
commit
f7b097dea0
Notes:
git
2024-09-03 16:12:27 +00:00
@ -1719,7 +1719,9 @@ 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
|
// Add our empty local scope at the very end of the array for our eval
|
||||||
// scope's locals.
|
// scope's locals.
|
||||||
pm_options_scope_init(&result.options.scopes[scopes_count], 0);
|
pm_options_scope_init(&result.options.scopes[scopes_count], 0);
|
||||||
VALUE error = pm_parse_string(&result, src, fname, NULL);
|
|
||||||
|
VALUE script_lines;
|
||||||
|
VALUE error = pm_parse_string(&result, src, fname, ruby_vm_keep_script_lines ? &script_lines : NULL);
|
||||||
|
|
||||||
// If the parse failed, clean up and raise.
|
// If the parse failed, clean up and raise.
|
||||||
if (error != Qnil) {
|
if (error != Qnil) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user