Skip to content

Commit f1ff2c1

Browse files
committed
preserve 0.2.6 compatibility
1 parent d6ba141 commit f1ff2c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/vows/suite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ this.Suite.prototype = new(function () {
162162
// duplicates.
163163
if (! old) Array.prototype.unshift.apply(ctx.topics, arguments);
164164
});
165-
topic.setMaxListeners(Infinity);
165+
if (topic.setMaxListeners) { topic.setMaxListeners(Infinity) }
166166

167167
// Now run the tests, or sub-contexts
168168
Object.keys(ctx.tests).filter(function (k) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"main" : "./lib/vows",
1010
"bin" : { "vows": "./bin/vows" },
1111
"directories" : { "test": "./test" },
12-
"version" : "0.5.4",
12+
"version" : "0.5.5",
1313
"engines" : {"node": ">=0.3.6"}
1414
}

0 commit comments

Comments
 (0)