Skip to content

Commit

Permalink
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
@@ -1794,7 +1794,7 @@ public IRubyObject eachIndex(ThreadContext context, Block block) {

@JRubyMethod
public IRubyObject each_index(ThreadContext context, Block block) {
return block.isGiven() ? eachIndex(context, block) : enumeratorize(context.runtime, this, "each_index");
return block.isGiven() ? eachIndex(context, block) : enumeratorizeWithSize(context, this, "each_index", enumLengthFn());
}

/** rb_ary_reverse_each
1 change: 0 additions & 1 deletion spec/tags/ruby/core/array/each_index_tags.txt

This file was deleted.

0 comments on commit 77ed483

Please sign in to comment.