We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e98285 commit 96a17a2Copy full SHA for 96a17a2
lib/vows/suite.js
@@ -144,7 +144,7 @@ this.Suite.prototype = new(function () {
144
145
// If the topic doesn't return an event emitter (such as a promise),
146
// we create it ourselves, and emit the value on the next tick.
147
- if (! (topic && topic.constructor === events.EventEmitter)) {
+ if (! (topic instanceof events.EventEmitter)) {
148
ctx.emitter = new(events.EventEmitter);
149
150
if (! ctx._callback) {
0 commit comments