MCPcopy Create free account
hub / github.com/RubyLouvre/anu / toSource

Function toSource

test/babel.js:28716–28726  ·  view source on GitHub ↗

* Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code.

(func)

Source from the content-addressed store, hash-verified

28714 * @returns {string} Returns the source code.
28715 */
28716 function toSource(func) {
28717 if (func != null) {
28718 try {
28719 return funcToString.call(func);
28720 } catch (e) {}
28721 try {
28722 return func + '';
28723 } catch (e) {}
28724 }
28725 return '';
28726 }
28727
28728 module.exports = toSource;
28729

Callers 2

babel.jsFile · 0.85
baseIsNativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected