Skip to content

Commit

Permalink
AST.of needs SCRIPT_LINES__ filled with a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 24, 2020
1 parent 263b941 commit fe82f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe82f72

Please sign in to comment.