/** 9.2.1 [[Call]] (thisArgument, argumentsList) */ @Override public GeneratorObject call(ExecutionContext callerContext, Object thisValue, Object... args) { try { return (GeneratorObject) getCallMethod().invokeExact(this, callerContext, thisValue, args); } catch (Throwable e) { throw FunctionObject.<RuntimeException>rethrow(e); } }
/** 9.2.2 [[Construct]] ( argumentsList, newTarget) */ @Override public GeneratorObject construct( ExecutionContext callerContext, Constructor newTarget, Object... argumentsList) { try { return (GeneratorObject) getConstructMethod().invokeExact(this, callerContext, newTarget, argumentsList); } catch (Throwable e) { throw FunctionObject.<RuntimeException>rethrow(e); } }