mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[PRISM] Handle RubyVM.keep_script_lines
This commit is contained in:
parent
554098303d
commit
371432b2d7
Notes:
git
2024-08-30 00:27:21 +00:00
7 changed files with 51 additions and 23 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue