Closed
Description
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 defaultEventEmitter.defaultMaxListeners
. -
- + 2.
- Keep this behavior.
Metadata
Metadata
Assignees
Labels
No labels