Project

General

Profile

Actions

Bug #10449

closed

[TracePoint API] Duplicated line events when using parenthesis

Added by deivid (David Rodríguez) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.4p265 (2014-10-27 revision 48166) [i686-linux]
[ruby-core:65995]

Description

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!!


Related issues 1 (0 open1 closed)

Related to Backport21 - Backport #11651: Please backport r48609ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0