1 /** Used for built-in method references. */
2 var funcProto = Function.prototype;
4 /** Used to resolve the decompiled source of functions. */
5 var funcToString = funcProto.toString;
8 * Converts `func` to its source code.
11 * @param {Function} func The function to convert.
12 * @returns {string} Returns the source code.
14 function toSource(func) {
17 return funcToString.call(func);
26 module.exports = toSource;