Skip to content

Commit

Permalink
Kill the LocalJumpError logic for break in lambda. Fixes jruby#4369.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jan 6, 2017
1 parent db207c1 commit 5228f8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/src/main/java/org/jruby/ir/runtime/IRRuntimeHelpers.java
Expand Up @@ -202,10 +202,6 @@ public static IRubyObject handleBreakAndReturnsInLambdas(ThreadContext context,
// that ensures are run, frames/scopes are popped
// from runtime stacks, etc.
return ((IRWrappedLambdaReturnValue)exc).returnValue;
} else if ((exc instanceof IRBreakJump) && inNonMethodBodyLambda(scope, blockType)) {
// We just unwound all the way up because of a non-local break
context.setSavedExceptionInLambda(IRException.BREAK_LocalJumpError.getException(context.runtime));
return null;
} else if (exc instanceof IRReturnJump && (blockType == null || inLambda(blockType))) {
try {
// Ignore non-local return processing in non-lambda blocks.
Expand Down

0 comments on commit 5228f8c

Please sign in to comment.