mirror of
https://github.com/ruby/ruby.git
synced 2026-08-12 08:20:37 +08:00
AST.of needs SCRIPT_LINES__ filled with a newline
This commit is contained in:
parent
263b941321
commit
fe82f72951
2
parse.y
2
parse.y
@ -6105,7 +6105,7 @@ yycompile0(VALUE arg)
|
||||
if (!compile_for_eval && !NIL_P(p->ruby_sourcefile_string)) {
|
||||
p->debug_lines = debug_lines(p->ruby_sourcefile_string);
|
||||
if (p->debug_lines && p->ruby_sourceline > 0) {
|
||||
VALUE str = STR_NEW0();
|
||||
VALUE str = rb_default_rs;
|
||||
n = p->ruby_sourceline;
|
||||
do {
|
||||
rb_ary_push(p->debug_lines, str);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user