lib/byebug/context.rb in byebug-2.3.1 vs lib/byebug/context.rb in byebug-2.4.0

- old
+ new

@@ -2,21 +2,21 @@ class Context class << self def stack_size - if backtrace = Thread.current.backtrace_locations + if backtrace = Thread.current.backtrace_locations(1) backtrace.drop_while { |l| ignored(l.path) || l.path == '(eval)' } .take_while { |l| !ignored(l.path) } .size else print 'No backtrace available!!' - return 0 + 0 end end def real_stack_size - if backtrace = Thread.current.backtrace_locations + if backtrace = Thread.current.backtrace_locations(1) backtrace.size end end def ignored(path)