Skip to content

Commit 37305c2

Browse files
michaelrhodesJames Halliday
authored and
James Halliday
committed
toStringified msg to prevent TypeError
1 parent 9eb1fd1 commit 37305c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/results.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Results.prototype.close = function () {
132132
function encodeResult (res, count) {
133133
var output = '';
134134
output += (res.ok ? 'ok ' : 'not ok ') + count;
135-
output += res.name ? ' ' + res.name.replace(/\s+/g, ' ') : '';
135+
output += res.name ? ' ' + res.name.toString().replace(/\s+/g, ' ') : '';
136136

137137
if (res.skip) output += ' # SKIP';
138138
else if (res.todo) output += ' # TODO';

0 commit comments

Comments
 (0)