Merge pull request #10083 from murgatroid99/node_lodash_3_compat_again

Change argument validation in Server#addService
pull/10072/head
Michael Lumish 8 years ago committed by GitHub
commit b60e6ac1a7
  1. 2
      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) {

Loading…
Cancel
Save