(obj, maxDepth)
| 2680 | } |
| 2681 | |
| 2682 | function toDebugString(obj, maxDepth) { |
| 2683 | if (typeof obj === 'function') { |
| 2684 | return obj.toString().replace(/ \{[\s\S]*$/, ''); |
| 2685 | } else if (isUndefined(obj)) { |
| 2686 | return 'undefined'; |
| 2687 | } else if (typeof obj !== 'string') { |
| 2688 | return serializeObject(obj, maxDepth); |
| 2689 | } |
| 2690 | return obj; |
| 2691 | } |
| 2692 | |
| 2693 | /* global angularModule: true, |
| 2694 | version: true, |
no test coverage detected