Files
NapCatQQ/.pnpm-store/v3/files/ab/2adae12d7e5a53471256dc4b91a4e353a2489cfe754cec139c7ebcac96ea1c260224345f28faba0120f6790faf54c985f1468dac8bc55f35aab7b25ba31cb8
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
639 B
Plaintext

import constant from './constant.js';
import defineProperty from './_defineProperty.js';
import identity from './identity.js';
/**
* The base implementation of `setToString` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var baseSetToString = !defineProperty ? identity : function(func, string) {
return defineProperty(func, 'toString', {
'configurable': true,
'enumerable': false,
'value': constant(string),
'writable': true
});
};
export default baseSetToString;