Fix for modules with null [[Prototype]] chain
Fix for modules with null [[Prototype]] chain

A module created in the following ways:

module.exports = Object.create(null)
module.exports = { __proto__: null }

won't have hasOwnProperty() available on it.

So it’s safer to use Object.prototype.hasOwnProperty.call(myObj, prop)
instead of myObj.hasOwnProperty(prop)

gaearon/react-hot-loader,gaearon/react-hot-loader