aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2017-03-10 14:13:41 -0800
committerGravatar murgatroid99 <mlumish@google.com>2017-03-10 14:13:41 -0800
commit46a50d5b0a2181f7c8d8446b22a1c78032d84b31 (patch)
treed817fc8ef52f54bed691664017675bf749e9416d /src/node
parent169c553e0d2f461e57af01958fcede2e3276f6d5 (diff)
parent4a8694fb3160c6525245c998842d727b339f2546 (diff)
Merge remote-tracking branch 'upstream/v1.2.x' into upmerge_v1.2.x
Diffstat (limited to 'src/node')
-rw-r--r--src/node/src/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/src/server.js b/src/node/src/server.js
index 8a7eff507d..a5a0ea2642 100644
--- a/src/node/src/server.js
+++ b/src/node/src/server.js
@@ -728,7 +728,7 @@ var defaultHandler = {
* method implementation for the provided service.
*/
Server.prototype.addService = function(service, implementation) {
- if (!_.isObjectLike(service) || !_.isObjectLike(implementation)) {
+ if (!_.isObject(service) || !_.isObject(implementation)) {
throw new Error('addService requires two objects as arguments');
}
if (_.keys(service).length === 0) {