Actions
Bug #21152
closedEnumerator's #size returned by Range#reverse_each raises an exception for endless Range
Bug #21152:
Enumerator's #size returned by Range#reverse_each raises an exception for endless Range
Updated by eileencodes (Eileen Uchitelle) over 1 year ago
This changed in https://github.com/ruby/ruby/pull/12301 to fix a similar bug.
Range.new(nil, "a").size also raises a TypeError when in 3.3 it didn't.
Updated by eileencodes (Eileen Uchitelle) over 1 year ago
Updated by mame (Yusuke Endoh) over 1 year ago
- Status changed from Open to Closed
Discussed at the dev meeting, and @matz (Yukihiro Matsumoto) agreed with @eileencodes (Eileen Uchitelle) ; the behavior of Ruby 3.4 is better.
Actions