Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/org/jruby/ir/runtime/IRRuntimeHelpers.java
Original file line number Diff line number Diff line change
@@ -1515,17 +1515,17 @@ private static IRubyObject[] prepareBlockArgsInternal(ThreadContext context, Blo
return IRubyObject.NULL_ARRAY;
}

boolean isProcCall = context.getCurrentBlockType() == Block.Type.PROC;
if (isProcCall) {
return prepareProcArgs(context, block, args);
}

boolean isLambda = block.type == Block.Type.LAMBDA;
if (isLambda) {
block.getBody().getSignature().checkArity(context.runtime, args);
return args;
}

boolean isProcCall = context.getCurrentBlockType() == Block.Type.PROC;
if (isProcCall) {
return prepareProcArgs(context, block, args);
}

BlockBody body = block.getBody();
org.jruby.runtime.Signature sig = body.getSignature();

0 comments on commit 583558a

Please sign in to comment.