(obj, maxDepth)
| 2664 | } |
| 2665 | |
| 2666 | function toDebugString(obj, maxDepth) { |
| 2667 | if (typeof obj === 'function') { |
| 2668 | return obj.toString().replace(/ \{[\s\S]*$/, ''); |
| 2669 | } else if (isUndefined(obj)) { |
| 2670 | return 'undefined'; |
| 2671 | } else if (typeof obj !== 'string') { |
| 2672 | return serializeObject(obj, maxDepth); |
| 2673 | } |
| 2674 | return obj; |
| 2675 | } |
| 2676 | |
| 2677 | /* global angularModule: true, |
| 2678 | version: true, |
no test coverage detected