aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-05-09 15:10:51 -0700
committerGravatar murgatroid99 <mlumish@google.com>2017-05-09 15:10:51 -0700
commitf2f125a38ac23a42fe7c60d174c380d1d7e4c7d0 (patch)
tree687bcd5a87a4b94d0049b4649860c0af52d787a0
parentffac55dfd634a62d54c8f152bbbce2bb51e7bc31 (diff)
Switch 'apply' for 'call' in pass-through functions
-rw-r--r--src/node/src/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js
index 75567c69ec..43502da6af 100644
--- a/src/node/src/client.js
+++ b/src/node/src/client.js
@@ -899,7 +899,7 @@ exports.makeClientConstructor = function(methods, serviceName,
* @return {Channel} The channel
*/
exports.getClientChannel = function(client) {
- return Client.prototype.getChannel.apply(client);
+ return Client.prototype.getChannel.call(client);
};
/**
@@ -915,7 +915,7 @@ exports.getClientChannel = function(client) {
* to connect.
*/
exports.waitForClientReady = function(client, deadline, callback) {
- Client.prototype.waitForReady.apply(client, deadline, callback);
+ Client.prototype.waitForReady.call(client, deadline, callback);
};
/**