I think this change fixes the following assertion failure:
[BUG] unexpected rb_parser_ary_data_type (2114076960) for script lines
It seems that ast_value is collected then rb_parser_build_script_lines_from touches invalid memory address. This change prevents ast_value from being collected by RB_GC_GUARD.
Add RB_GC_GUARD for ast_value
I think this change fixes the following assertion failure:
It seems that
ast_valueis collected thenrb_parser_build_script_lines_fromtouches invalid memory address.
This change prevents
ast_valuefrom being collected by RB_GC_GUARD.