-
-
Notifications
You must be signed in to change notification settings - Fork 943
Open
Labels
Description
We do not currently detect or reject Hash#rehash during iteration. There may be other modification-during-iteration cases that we do not detect but should.
This leads to two failures in CRuby tests:
TestHash#test_update_modify_in_block [/home/runner/work/jruby/jruby/test/mri/ruby/test_hash.rb:1303]:
Exception(RuntimeError) with message matches to /rehash during iteration/.
RuntimeError expected but nothing was raised.
TestHash::TestSubHash#test_update_modify_in_block [/home/runner/work/jruby/jruby/test/mri/ruby/test_hash.rb:1303]:
Exception(RuntimeError) with message matches to /rehash during iteration/.
RuntimeError expected but nothing was raised.
Reactions are currently unavailable