private static IRubyObject handleBreakJump(ThreadContext context, JumpException.BreakJump bj) throws JumpException.BreakJump { if (context.getFrameJumpTarget() == bj.getTarget()) { return (IRubyObject) bj.getValue(); } throw bj; }
protected IRubyObject handleReturn(ThreadContext context, JumpException.ReturnJump rj) { if (rj.getTarget() == context.getFrameJumpTarget()) { return (IRubyObject) rj.getValue(); } throw rj; }