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