[ruby-core:83632] [Ruby trunk Bug#14074] TracePoint#new without a block should not raise ThreadError

From: atul1bhosale@...
Date: 2017-11-01 13:54:58 UTC
List: ruby-core #83632
Issue #14074 has been reported by atul (Atul Bhosale).

----------------------------------------
Bug #14074: TracePoint#new without a block should not raise ThreadError
https://bugs.ruby-lang.org/issues/14074

* Author: atul (Atul Bhosale)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: trunk
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
While working on RubySpecs with Marc-Andre Lafortune, we discovered that TracePoint.new raises a ThreadError instead of ArgumentError.
For example :
~~~ ruby
TracePoint.new => # => ThreadError: must be called with a block
~~~




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next