Skip to content

Commit b3b2bf5

Browse files
Juang ZacharyJuang Zachary
Juang Zachary
authored and
Juang Zachary
committed
Fix node-v6 not providing hasOwnProperty for EventEmitter._events
1 parent aa7e098 commit b3b2bf5

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)