Skip to content

Commit 8e7e471

Browse files
Merge pull request #126 from zachary822/master
Fix node-v6 not providing hasOwnProperty for EventEmitter._events
2 parents d5de7c6 + b3b2bf5 commit 8e7e471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Server(options, isSecure, onListening) {
3838
function handleMethodCall(request, response) {
3939
var deserializer = new Deserializer()
4040
deserializer.deserializeMethodCall(request, function(error, methodName, params) {
41-
if (that._events.hasOwnProperty(methodName)) {
41+
if (Object.prototype.hasOwnProperty.call(that._events, methodName)) {
4242
that.emit(methodName, null, params, function(error, value) {
4343
var xml = null
4444
if (error !== null) {

0 commit comments

Comments
 (0)