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 Aug 16, 2017

Unverified

This user has not yet uploaded their public signing key.
1 parent d9c2fef commit 82049d0
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 82049d0

Please sign in to comment.