lib/irb.rb in irb-1.3.8.pre.8 vs lib/irb.rb in irb-1.3.8.pre.9

- old
+ new

@@ -667,9 +667,11 @@ end end lines = lines.reverse if order == :bottom lines.map{ |l| l + "\n" }.join } + # The "<top (required)>" in "(irb)" may be the top level of IRB so imitate the main object. + message = message.gsub(/\(irb\):(?<num>\d+):in `<(?<frame>top \(required\))>'/) { "(irb):#{$~[:num]}:in `<main>'" } puts message end print "Maybe IRB bug!\n" if irb_bug end