[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65995] [ruby-trunk - Bug #10449] [Open] [TracePoint API] Duplicated line events when using parenthesis

From: deivid.rodriguez@...
Date: 2014-10-29 15:08:44 UTC
List: ruby-core #65995
Issue #10449 has been reported by David Rodr鱈guez.

----------------------------------------
Bug #10449: [TracePoint API] Duplicated line events when using parenthesis
https://bugs.ruby-lang.org/issues/10449

* Author: David Rodr鱈guez
* Status: Open
* 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/

In This Thread

Prev Next