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

Fix ObjectSpace::WeakMap#key? to work if the value is nil

* Fixes [Bug #16826]
This commit is contained in:
Benoit Daloze 2020-05-02 16:08:36 +02:00
parent c9213aa864
commit a2be428c5f
2 changed files with 13 additions and 5 deletions

View file

@ -21,7 +21,7 @@ describe :weakmap_include?, shared: true do
end
ruby_version_is "2.7" do
ruby_bug "#16826", "2.7.0"..."2.8.1" do
ruby_bug "#16826", "2.7.0"..."2.7.2" do
it "reports true if the pair exists and the value is nil" do
map = ObjectSpace::WeakMap.new
key = Object.new