We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5de7c6 + b3b2bf5 commit 8e7e471Copy full SHA for 8e7e471
1 file changed
lib/server.js
@@ -38,7 +38,7 @@ function Server(options, isSecure, onListening) {
38
function handleMethodCall(request, response) {
39
var deserializer = new Deserializer()
40
deserializer.deserializeMethodCall(request, function(error, methodName, params) {
41
- if (that._events.hasOwnProperty(methodName)) {
+ if (Object.prototype.hasOwnProperty.call(that._events, methodName)) {
42
that.emit(methodName, null, params, function(error, value) {
43
var xml = null
44
if (error !== null) {
0 commit comments