Skip to content
Snippets Groups Projects
Commit b60e6ac1 authored by Michael Lumish's avatar Michael Lumish Committed by GitHub
Browse files

Merge pull request #10083 from murgatroid99/node_lodash_3_compat_again

Change argument validation in Server#addService
parents a85e7d4a 9d68158d
No related branches found
No related tags found
No related merge requests found
...@@ -728,7 +728,7 @@ var defaultHandler = { ...@@ -728,7 +728,7 @@ var defaultHandler = {
* method implementation for the provided service. * method implementation for the provided service.
*/ */
Server.prototype.addService = function(service, implementation) { 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'); throw new Error('addService requires two objects as arguments');
} }
if (_.keys(service).length === 0) { if (_.keys(service).length === 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment