* Converts `func` to its source code. * * @private * @param {Function} func The function to process. * @returns {string} Returns the source code.
(func)
| 720 | * @returns {string} Returns the source code. |
| 721 | */ |
| 722 | function toSource(func) { |
| 723 | if (func != null) { |
| 724 | try { |
| 725 | return funcToString.call(func); |
| 726 | } catch (e) {} |
| 727 | try { |
| 728 | return func + ''; |
| 729 | } catch (e) {} |
| 730 | } |
| 731 | return ''; |
| 732 | } |
| 733 | |
| 734 | /** |
| 735 | * Creates a function that memoizes the result of `func`. If `resolver` is |
no outgoing calls
no test coverage detected
searching dependent graphs…