Update client.js

This commit is contained in:
Justin Beckwith 2018-11-19 15:06:25 -08:00 committed by GitHub
parent b17d034e39
commit fe3c71b350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -940,10 +940,9 @@ exports.makeClientConstructor = function(methods, serviceName,
}
var method_type = common.getMethodType(attrs);
var method_func = function() {
return requester_funcs[method_type].apply(this,
[].slice.call(arguments).concat([
attrs.path, attrs.requestSerialize, attrs.responseDeserialize
])
return requester_funcs[method_type].apply(this,
[ attrs.path, attrs.requestSerialize, attrs.responseDeserialize ]
.concat([].slice.call(arguments))
);
};
if (class_options.deprecatedArgumentOrder) {