Skip to content

Commit 03c7148

Browse files
committed
fix function correctly
1 parent c0b9244 commit 03c7148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ function inspect(something) {
146146
if (functionsHaveNames || !util.isFunction(something)) {
147147
return util.inspect(something);
148148
}
149-
var name = getName(something) || '';
150-
return '[Function' + name + ']'
149+
var name = getName(something);
150+
return '[Function' + name ? ': ' + name : '' + ']'
151151
}
152152
function getMessage(self) {
153153
return truncate(inspect(self.actual), 128) + ' ' +

0 commit comments

Comments
 (0)