Forum: Ruby-core [TracePoint API] return event missing when raising exception

902c57f4b5f63db9c91dffb57b090654?d=identicon&s=25 Deivid R. (deivid_r)
on 2014-04-30 12:35
(Received via mailing list)
Issue #9759 has been updated by David Rodríguez.


Thanks!! So happy that this got fixed!! I hope it'll be added to 2.1
too.

----------------------------------------
Bug #9759: [TracePoint API] return event missing when raising exception
https://bugs.ruby-lang.org/issues/9759#change-46405

* Author: David Rodríguez
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* Category: core
* Target version: current: 2.2.0
* ruby -v:
https://github.com/thoughtbot/factory_girl/blob/ma...
* Backport: 2.0.0: UNKNOWN, 2.1: REQUIRED
----------------------------------------
I think I found another bug in the TracePoint API, which seems related
to #9321. In this case, the failing event is a return event from a
method inside of which the exception was generated.

I wrote a failing test case, adapting the code from
[factory_girl](https://github.com/thoughtbot/factory_girl/blob/ma...),
which is where I first found the strange behaviour.

Thanks a lot in advance!

---Files--------------------------------
tracepoint_missing_return_bug.rb (1.37 KB)
This topic is locked and can not be replied to.