source: node_modules/@babel/runtime-corejs3/helpers/esm/setFunctionName.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 391 bytes
Line 
1import _typeof from "./typeof.js";
2import _Object$defineProperty from "core-js-pure/features/object/define-property.js";
3export default 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}
Note: See TracBrowser for help on using the repository browser.