Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
@@ -3311,6 +3311,9 @@ public IRubyObject uniq_bang19(ThreadContext context, Block block) {
RubyHash hash = makeHash(context, block);
if (realLength == hash.size()) return context.runtime.getNil();

// after evaluating the block, a new modify check is needed
modifyCheck();

// TODO: (CON) This could be a no-op for packed arrays if size does not change
unpack();

1 change: 0 additions & 1 deletion test/mri/excludes/TestArray.rb
Original file line number Diff line number Diff line change
@@ -15,6 +15,5 @@
exclude :test_sort_bang_with_freeze, ""
exclude :test_sort_with_callcc, "no callcc"
exclude :test_to_h, ""
exclude :test_uniq_bang_with_freeze, ""
exclude :test_values_at2, ""
exclude :test_zip, ""

0 comments on commit 245e4fe

Please sign in to comment.