Project

General

Profile

Actions

Bug #14074

closed

TracePoint#new without a block should not raise ThreadError

Added by atul (Atul Bhosale) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
trunk
[ruby-core:83632]

Description

While working on RubySpecs with Marc-Andre Lafortune, we discovered that TracePoint.new raises a ThreadError instead of ArgumentError.
For example :

TracePoint.new => # => ThreadError: must be called with a block
Actions

Also available in: Atom PDF