* Converts `func` to its source code. * * @private * @param {Function} func The function to process. * @returns {string} Returns the source code.
(func)
| 655 | * @returns {string} Returns the source code. |
| 656 | */ |
| 657 | function toSource(func) { |
| 658 | if (func != null) { |
| 659 | try { |
| 660 | return funcToString.call(func); |
| 661 | } catch (e) {} |
| 662 | try { |
| 663 | return func + ''; |
| 664 | } catch (e) {} |
| 665 | } |
| 666 | return ''; |
| 667 | } |
| 668 | |
| 669 | /** |
| 670 | * Creates a function that memoizes the result of `func`. If `resolver` is |
no outgoing calls
no test coverage detected
searching dependent graphs…