basant307/AI_Governance_Project
048
1import baseSetData from './_baseSetData.js';2import shortOut from './_shortOut.js';3 4/**5 * Sets metadata for `func`.6 *7 * **Note:** If this function becomes hot, i.e. is invoked a lot in a short8 * period of time, it will trip its breaker and transition to an identity9 * function to avoid garbage collection pauses in V8. See10 * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)11 * for more details.12 *13 * @private14 * @param {Function} func The function to associate metadata with.15 * @param {*} data The metadata.16 * @returns {Function} Returns `func`.17 */18var setData = shortOut(baseSetData);19 20export default setData;21 