From: deivid.rodriguez@... Date: 2014-11-30T11:15:55+00:00 Subject: [ruby-core:66589] [ruby-trunk - Bug #10449] [TracePoint API] Duplicated line events when using parenthesis Issue #10449 has been updated by David Rodr��guez. Actually I've given this a second thought and I'm fine with the change. The funcionality loss is minimal (and easy to do it in other ways), the patch corrects issues like this one and the code using the API will be simpler as it will not need to handle the duplication. So basically, I'm fine with anything. :) ---------------------------------------- Bug #10449: [TracePoint API] Duplicated line events when using parenthesis https://bugs.ruby-lang.org/issues/10449#change-50205 * Author: David Rodr��guez * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.1.4p265 (2014-10-27 revision 48166) [i686-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Sometimes, when using parenthesis, I get duplicated lines events from the TracePoint API. See the failing test case, it generates 2 line events where I think it should generate just one. def test_no_duplicate_line_events events = [] TracePoint.new(:line) { |tp| events << tp.event }.enable { a = (1) * 5 } assert_equal [:line], events end Thanks!! -- https://bugs.ruby-lang.org/