summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-14 10:23:16 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-14 10:23:16 +0900
commitb66c5c3b1b31581960bcb69d49b618d69ae2a87f (patch)
treee2540f1a9d84505681ed9c5277558ed884e878dd /test/ruby
parentcb88edf0bfdc2ce6bfbe3b4e0463a4c2dc5d2230 (diff)
Revert "[Bug #21331] Prohibit modification during stlike loop"
This reverts commit bb180b87b43c45e17ff49735a26d7a188d5c8396, which caused "malloc during GC" error on wasm.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13329
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_hash.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index 76af5b6183..b6c18ea958 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -1853,14 +1853,6 @@ class TestHash < Test::Unit::TestCase
end
end
assert_equal(@cls[a: 2, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9, j: 10], x)
-
- x = (1..1337).to_h {|k| [k, k]}
- assert_raise_with_message(RuntimeError, /rehash during iteration/) do
- x.transform_values! {|v|
- x.rehash if v == 1337
- v * 2
- }
- end
end
def hrec h, n, &b