From b17d034e3942f07300c2b73fdaa35caf40846448 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 15 Nov 2018 18:06:59 -0800 Subject: [PATCH] lefix --- packages/grpc-native-core/src/client.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/grpc-native-core/src/client.js b/packages/grpc-native-core/src/client.js index 8cfa19fa..6a73b21e 100644 --- a/packages/grpc-native-core/src/client.js +++ b/packages/grpc-native-core/src/client.js @@ -940,9 +940,11 @@ exports.makeClientConstructor = function(methods, serviceName, } var method_type = common.getMethodType(attrs); var method_func = function() { - return requester_funcs[method_type].apply(this, arguments.concat([ - attrs.path, attrs.requestSerialize, attrs.responseDeserialize - ])); + return requester_funcs[method_type].apply(this, + [].slice.call(arguments).concat([ + attrs.path, attrs.requestSerialize, attrs.responseDeserialize + ]) + ); }; if (class_options.deprecatedArgumentOrder) { ServiceClient.prototype[name] =