Project

General

Profile

Actions

Bug #13320

closed

rescue blocks get an entry in backtrace locations

Added by bughit (bug hit) over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:80190]

Description

def foo
  puts caller(0)
end

def bar
  raise
rescue
  foo
end

bar

foo
rescue in bar
bar

this does not seem to make sense, conceptually a rescue block is not a separate callable entity, but just a section of a method, why should it get its own entry in the call stack?

Actions

Also available in: Atom PDF