1 var constant = require('./constant'),
2 defineProperty = require('./_defineProperty'),
3 identity = require('./identity');
6 * The base implementation of `setToString` without support for hot loop shorting.
9 * @param {Function} func The function to modify.
10 * @param {Function} string The `toString` result.
11 * @returns {Function} Returns `func`.
13 var baseSetToString = !defineProperty ? identity : function(func, string) {
14 return defineProperty(func, 'toString', {
17 'value': constant(string),
22 module.exports = baseSetToString;