File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
src/vm/jvm/runtime/org/perl6/nqp/truffle/nodes/control Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,7 @@ public boolean executeRepeating(VirtualFrame frame) {
56
56
boolean condResult = toBoolean (condNode .execute (frame ));
57
57
condResult = isUntil ? !condResult : condResult ;
58
58
if (condResult ) {
59
- try {
60
- bodyNode .executeVoid (frame );
61
- } catch (ContinueException ex ) {
62
- // the body might throw a continue control-flow exception
63
- // continue loop invocation
64
- } catch (BreakException ex ) {
65
- // the body might throw a break control-flow exception
66
- // break loop invocation by returning false
67
- return false ;
68
- }
59
+ bodyNode .executeVoid (frame );
69
60
return true ;
70
61
} else {
71
62
return false ;
@@ -75,9 +66,4 @@ public boolean executeRepeating(VirtualFrame frame) {
75
66
@ Override
76
67
public void executeVoid (VirtualFrame frame ) {}
77
68
}
78
-
79
- // thrown by guest language continue statements
80
- public final class ContinueException extends ControlFlowException {}
81
- // thrown by guest language break statements
82
- public final class BreakException extends ControlFlowException {}
83
69
}
You can’t perform that action at this time.
0 commit comments