(func)
| 444 | } |
| 445 | |
| 446 | function functionName(func) { |
| 447 | if (!func) { return ""; } |
| 448 | if (func.displayName) { return func.displayName; } |
| 449 | if (func.name) { return func.name; } |
| 450 | var matches = func.toString().match(/function\s+([^\(]+)/m); |
| 451 | return (matches && matches[1]) || ""; |
| 452 | } |
| 453 | |
| 454 | function constructorName(f, object) { |
| 455 | var name = functionName(object && object.constructor); |
no outgoing calls
no test coverage detected
searching dependent graphs…