From: timsmith3@... Date: 2017-02-02T05:54:07+00:00 Subject: [ruby-core:79388] [Ruby trunk Bug#13181] Unexpected line in rescue backtrace Issue #13181 has been reported by Tim Smith. ---------------------------------------- Bug #13181: Unexpected line in rescue backtrace https://bugs.ruby-lang.org/issues/13181 * Author: Tim Smith * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- ~~~ ruby def foo # 1 puts 'hello' # 2 raise 'x' # 3 puts 'goodbye' # 4 rescue # 5 raise 'y' # 6 end # 7 # 8 foo # 9 ~~~ ~~~ hello backtrace.rb:6:in `rescue in foo': y (RuntimeError) from backtrace.rb:2:in `foo' from backtrace.rb:9:in `
' ~~~ I expect line 6 and line 9 in the backtrace, but not line 2. -- https://bugs.ruby-lang.org/ Unsubscribe: