We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 698f197 commit 32faf70Copy full SHA for 32faf70
lib/test.js
@@ -237,13 +237,13 @@ Test.prototype._assert = function assert (ok, opts) {
237
if (filem[1].slice(0, dir.length) === dir) {
238
continue;
239
}
240
-
241
- res.functionName = s[0];
+
+ res.functionName = s.length > 1 ? s[0] : '<anonymous>';
242
res.file = filem[1];
243
res.line = Number(filem[2]);
244
if (filem[3]) res.column = filem[3];
245
246
- res.at = m[1];
+ res.at = s.length > 1 ? m[1] : '<anonymous> (' + m[1] + ')';
247
break;
248
249
0 commit comments