MiddlewareManager.use will throw exception if an empty object is passed as parameter.
Callstack
TypeError: _this._methodMiddlewares[methodName].push is not a function
at Array.forEach (<anonymous>)
at MiddlewareManager._applyToMethod
at Array.forEach (<anonymous>)
at Array.forEach (<anonymous>)
at MiddlewareManager.use
Probably need to reject the empty object at the beginning.
MiddlewareManager.usewill throw exception if an empty object is passed as parameter.Callstack
Probably need to reject the empty object at the beginning.