(obj)
| 2280 | /* global: toDebugString: true */ |
| 2281 | |
| 2282 | function serializeObject(obj) { |
| 2283 | var seen = []; |
| 2284 | |
| 2285 | return JSON.stringify(obj, function(key, val) { |
| 2286 | val = toJsonReplacer(key, val); |
| 2287 | if (isObject(val)) { |
| 2288 | |
| 2289 | if (seen.indexOf(val) >= 0) return '...'; |
| 2290 | |
| 2291 | seen.push(val); |
| 2292 | } |
| 2293 | return val; |
| 2294 | }); |
| 2295 | } |
| 2296 | |
| 2297 | function toDebugString(obj) { |
| 2298 | if (typeof obj === 'function') { |
no test coverage detected