(val)
| 124 | } |
| 125 | |
| 126 | function representObj(val) { |
| 127 | let string = val.toString(), m, elt |
| 128 | if (/^\[object .*\]$/.test(string)) |
| 129 | return representSimpleObj(val) |
| 130 | if (val.call && (m = string.match(/^\s*(function[^(]*\([^)]*\))/))) |
| 131 | return m[1] + "{…}" |
| 132 | return string |
| 133 | } |
| 134 | |
| 135 | function constructorName(obj) { |
| 136 | if (!obj.constructor) return null |
no test coverage detected