mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
* enum.c (enum_join): remove Enumerable#join. [ruby-core:24786]
* array.c (ary_join_1): use #to_ary to detect recursive array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1bf026f48
commit
8b55878d2a
5 changed files with 8 additions and 54 deletions
|
@ -1565,7 +1565,7 @@ class TestArray < Test::Unit::TestCase
|
|||
a << a
|
||||
assert_raise(ArgumentError){a.join}
|
||||
|
||||
def (a = Object.new).to_a
|
||||
def (a = Object.new).to_ary
|
||||
[self]
|
||||
end
|
||||
assert_raise(ArgumentError, '[ruby-core:24150]'){[a].join}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue