(val)
| 143 | } |
| 144 | |
| 145 | function representSimpleObj(val) { |
| 146 | let out = "{", name = constructorName(val) |
| 147 | if (name) out = name + " " + out |
| 148 | let first = true |
| 149 | for (let prop in val) if (hop(val, prop)) { |
| 150 | if (out.length > 80) return out |
| 151 | if (first) first = false |
| 152 | else out += ", " |
| 153 | out += prop + ": " + represent(val[prop]) |
| 154 | } |
| 155 | return out + "}" |
| 156 | } |
| 157 | |
| 158 | function compareClipped(a, b) { |
| 159 | a = a.split("\n") |
no test coverage detected