(s, n)
| 9712 | } |
| 9713 | |
| 9714 | function truncate(s, n) { |
| 9715 | if (util.isString(s)) { |
| 9716 | return s.length < n ? s : s.slice(0, n); |
| 9717 | } else { |
| 9718 | return s; |
| 9719 | } |
| 9720 | } |
| 9721 | |
| 9722 | function getMessage(self) { |
| 9723 | return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' + |