When defined?(RubyVM.keep_script_lines) was true, orig_src would perform additional work of handling the start line, but in the branch where it was false this wasn't done. This commit changes orig_src to call into a private iseq_src method to get the source lines and then shares the start line work.
When
defined?(RubyVM.keep_script_lines)
was true,orig_src
would perform additional work of handling the start line, but in the branch where it was false this wasn't done. This commit changesorig_src
to call into a privateiseq_src
method to get the source lines and then shares the start line work.