Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/org/jruby/ir/IRBuilder.java
Original file line number Diff line number Diff line change
@@ -3011,6 +3011,11 @@ public Operand buildRational(RationalNode rationalNode) {
}

public Operand buildRedo() {
// If we have ensure blocks, have to run those first!
if (!activeEnsureBlockStack.empty()) {
emitEnsureBlocks(getCurrentLoop());
}

// If in a loop, a redo is a jump to the beginning of the loop.
// If not, for closures, a redo is a jump to the beginning of the closure.
// If not in a loop or a closure, it is a local jump error

0 comments on commit b665fa1

Please sign in to comment.