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