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