(obj, maxDepth)
| 2699 | } |
| 2700 | |
| 2701 | function toDebugString(obj, maxDepth) { |
| 2702 | if (typeof obj === 'function') { |
| 2703 | return obj.toString().replace(/ \{[\s\S]*$/, ''); |
| 2704 | } else if (isUndefined(obj)) { |
| 2705 | return 'undefined'; |
| 2706 | } else if (typeof obj !== 'string') { |
| 2707 | return serializeObject(obj, maxDepth); |
| 2708 | } |
| 2709 | return obj; |
| 2710 | } |
| 2711 | |
| 2712 | /* global angularModule: true, |
| 2713 | version: true, |
no test coverage detected