if (!(args[1] instanceof Type)) {
throw context.runtime.newTypeError("invalid return type");
}
final Type returnType = (Type) args[1];
final CallingConvention conv = "stdcall".equals(args[2].toString())
? CallingConvention.STDCALL : CallingConvention.DEFAULT;
FunctionInvoker functionInvoker = DefaultMethodFactory.getFunctionInvoker(returnType);
return new VariadicInvoker(context.runtime, klass, address,