Skip to content

Commit

Permalink
Revert "Two users where knowing we are passing 0 or 2 arity can then …
Browse files Browse the repository at this point in the history
…use yieldSpecific."

This reverts commit e4adab3.
enebo committed May 23, 2017
1 parent ad4644f commit ad368ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyEnumerable.java
Original file line number Diff line number Diff line change
@@ -1000,7 +1000,7 @@ static class EachWithIndex implements BlockCallback {
}

public IRubyObject call(ThreadContext context, IRubyObject[] iargs, Block block) {
return this.block.yieldSpecific(context, packEnumValues(context, iargs), context.runtime.newFixnum(index++));
return this.block.call(context, packEnumValues(context, iargs), context.runtime.newFixnum(index++));
}
}

0 comments on commit ad368ee

Please sign in to comment.