* Converts `func` to its source code. * * @private * @param {Function} func The function to process. * @returns {string} Returns the source code.
(func)
| 582 | * @returns {string} Returns the source code. |
| 583 | */ |
| 584 | function toSource(func) { |
| 585 | if (func !== null) { |
| 586 | try { |
| 587 | return funcToString.call(func); |
| 588 | } catch (e) {} |
| 589 | try { |
| 590 | return `${func}`; |
| 591 | } catch (e) {} |
| 592 | } |
| 593 | return ""; |
| 594 | } |
| 595 | |
| 596 | /** |
| 597 | * Checks if `value` is likely an `arguments` object. |
no outgoing calls
no test coverage detected