https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-07-12T03:43:42ZRuby Issue Tracking SystemRuby master - Bug #9358: TracePoint's raise event should throw 'not supported by this event (RuntimeError)' on calling return_valuehttps://redmine.ruby-lang.org/issues/9358?journal_id=793292019-07-12T03:43:42Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Backport</strong> deleted (<del><i>1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN</i></del>)</li></ul><p>This is expected behavior. As the documentation states:</p>
<p><code>raised_exception</code>: <code>Value from exception raised on the :raise event</code><br>
<code>return_value</code>: <code>Return value from :return, c_return, and b_return event</code></p>
<p>You cannot call methods not supported by the type. You can use the <code>event</code> method to check the type of the particular event.</p>