Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

added default options to empty object #425

Merged
merged 1 commit into from
Feb 27, 2016

Conversation

henricavalcante
Copy link
Contributor

to solve this problem:

[23:18:46] henricavalcante@machine:~/git/henricavalcante/talk-gdg-mqtt
$ node mosca1.js
/Users/henricavalcante/git/henricavalcante/talk-gdg-mqtt/node_modules/mosca/lib/options.js:68
    if (legacy.hasOwnProperty(name)) {
              ^

TypeError: Cannot read property 'hasOwnProperty' of undefined
    at /Users/henricavalcante/git/henricavalcante/talk-gdg-mqtt/node_modules/mosca/lib/options.js:68:15
    at Array.forEach (native)
    at Object.modernize (/Users/henricavalcante/git/henricavalcante/talk-gdg-mqtt/node_modules/mosca/lib/options.js:67:13)
    at EventEmitter.Server (/Users/henricavalcante/git/henricavalcante/talk-gdg-mqtt/node_modules/mosca/lib/server.js:101:28)
    at Object.<anonymous> (/Users/henricavalcante/git/henricavalcante/talk-gdg-mqtt/mosca1.js:2:16)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:430:10)

mcollina added a commit that referenced this pull request Feb 27, 2016
added default options to empty object
@mcollina mcollina merged commit c77b48d into moscajs:master Feb 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants