Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -77,7 +77,7 @@ public Object interpret(ThreadContext context, StaticScope currScope, DynamicSco
if (unwrapArray && yieldOp instanceof Array && ((Array)yieldOp).size() > 1) {
// Special case this path!
// Don't build a RubyArray.
return blk.yieldArray(context, self, ((Array)yieldOp).retrieveArrayElts(context, self, currScope, currDynScope, temp));
return blk.yieldValues(context, self, ((Array)yieldOp).retrieveArrayElts(context, self, currScope, currDynScope, temp));
} else {
IRubyObject yieldVal = (IRubyObject) yieldOp.retrieve(context, self, currScope, currDynScope, temp);
return IRRuntimeHelpers.yield(context, blk, yieldVal, unwrapArray);
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/runtime/Block.java
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ public IRubyObject yieldArray(ThreadContext context, IRubyObject value, IRubyObj
return body.yield(context, this, args, self);
}

public IRubyObject yieldArray(ThreadContext context, IRubyObject self, IRubyObject[] args) {
public IRubyObject yieldValues(ThreadContext context, IRubyObject self, IRubyObject[] args) {
return body.yield(context, this, args, self);
}

0 comments on commit c7b2699

Please sign in to comment.