ExceptionHandling.dieInternal(tc, e);
}
}
public static SixModelObject invokewithcapture(SixModelObject invokee, SixModelObject capture, ThreadContext tc) throws Exception {
if (capture instanceof CallCaptureInstance) {
CallCaptureInstance cc = (CallCaptureInstance)capture;
invokeDirect(tc, invokee, cc.descriptor, cc.args);
return result_o(tc.curFrame);
}
else {
throw ExceptionHandling.dieInternal(tc, "invokewithcapture requires a CallCapture");