setFunctionName.js 412 B

12345678910111213
  1. import _typeof from "./typeof.js";
  2. import _Object$defineProperty from "core-js/library/fn/object/define-property.js";
  3. function setFunctionName(e, t, n) {
  4. "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : "");
  5. try {
  6. _Object$defineProperty(e, "name", {
  7. configurable: !0,
  8. value: n ? n + " " + t : t
  9. });
  10. } catch (e) {}
  11. return e;
  12. }
  13. export { setFunctionName as default };