I got following TypeError. the detail is here (sequelize/sequelize#2966).
TypeError: undefined is not a function
at Promise.addListener (events.js:154:18)
at Promise.on (/Users/yosuke/go/src/github.com/yosuke-furukawa/Hexi/node_modules/sequelize/lib/promise.js:118:31)
I think Sequelize module is wrong, EventEmitter.prototype.addListener should not be called directly. However, I don't think this error message is easy to understand. And io.js seems to break node.js compatible on events.
I have 4 options, I would like to discuss about the behavior.
- If
this.getMaxListeners is undefined, events module prints helpful message like "EventEmitter.prototype.addListener should not called directly."
- If
this.getMaxListeners is undefined, return the default EventEmitter.defaultMaxListeners.
-
- + 2.
- Keep this behavior.
I got following TypeError. the detail is here (sequelize/sequelize#2966).
I think Sequelize module is wrong,
EventEmitter.prototype.addListenershould not be called directly. However, I don't think this error message is easy to understand. And io.js seems to break node.js compatible on events.I have 4 options, I would like to discuss about the behavior.
this.getMaxListenersis undefined, events module prints helpful message like "EventEmitter.prototype.addListener should not called directly."this.getMaxListenersis undefined, return the defaultEventEmitter.defaultMaxListeners.