setFunctionName.js 328 B

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