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 c0b9244 commit 03c7148Copy full SHA for 03c7148
assert.js
@@ -146,8 +146,8 @@ function inspect(something) {
146
if (functionsHaveNames || !util.isFunction(something)) {
147
return util.inspect(something);
148
}
149
- var name = getName(something) || '';
150
- return '[Function' + name + ']'
+ var name = getName(something);
+ return '[Function' + name ? ': ' + name : '' + ']'
151
152
function getMessage(self) {
153
return truncate(inspect(self.actual), 128) + ' ' +
0 commit comments