1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed the key to delete [Bug #16250]

f94202fcc2 (commitcomment-35505076)

Co-Authored-By: Ary Borenszweig <asterite@gmail.com>
This commit is contained in:
Nobuyoshi Nakada 2019-10-15 23:13:49 +09:00
parent 81176095f4
commit c01df7e58f
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -141,7 +141,7 @@ module IRB # :nodoc:
seen[obj] = true
block.call
ensure
seen.delete(obj.object_id)
seen.delete(obj)
end
# Ripper::Lexer::Elem#state is supported on Ruby 2.5+